[llvm-bugs] [Bug 31315] New: Microsoft warning even when using -fms-extensions

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 8 06:04:30 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31315

            Bug ID: 31315
           Summary: Microsoft warning even when using -fms-extensions
           Product: new-bugs
           Version: 3.9
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hmijail at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When using anonymous structs with "clang -fms-extensions", eg.

struct s1 {
...
}
struct s2 {
...
}

union u1 {
    struct s1;
    struct s2;
}

I get a warning "anonymous structs are a Microsoft extension
[-Wmicrosoft-anon-tag]".
This warning seems unnecessary, given that extensions have been enabled
explicitly with -fms-extensions.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161208/d480783d/attachment.html>


More information about the llvm-bugs mailing list