[LLVMbugs] [Bug 15803] New: __extension__ does not suppress pedantic warning for flexible array member in c89 mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 20 20:18:53 PDT 2013


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

            Bug ID: 15803
           Summary: __extension__ does not suppress pedantic warning for
                    flexible array member in c89 mode
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: crigler at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This testcase produces a warning even though __extension__ is used.

clang -std=c89 -pedantic:

struct foo {
int len;
__extension__ char buf[];
};

-- 
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/20130421/a88d7d09/attachment.html>


More information about the llvm-bugs mailing list