Possible compiler bug in MSVC12 (VS2013) with designated initializer

后端 未结 1 1453
忘掉有多难
忘掉有多难 2020-12-19 00:48

Using VS2013 Update 2, I\'ve stumbled on some strange error message :

// test.c
int main(void)
{
    struct foo {
        int i;
        float f;
    };

            


        
相关标签:
1条回答
  • 2020-12-19 01:27

    It is a known bug. It is said to be fixed in the next version of MSVC.

    EDIT: Unfortunately, the bug is still present in VS14 CTP 4.

    EDIT: This bug has been fixed in VS2015 CTP 5.

    0 讨论(0)
提交回复
热议问题