[LLVMbugs] [Bug 6829] New: MS extension for nameless struct members missing

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 13 10:51:29 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=6829

           Summary: MS extension for nameless struct members missing
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: amine48rz at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Here's a testcase : 

typedef struct { int x; } STRUCT1;
typedef struct { STRUCT1; int y; } STRUCT2;

clang -fms-extensions issues a warning : declaration does not declare anything

typedef struct { STRUCT1; int y; } STRUCT2;
                 ^~~~~~~

While gcc -fms-extensions doesn't.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list