[LLVMbugs] [Bug 3540] New: error: 'struct pppoe_tag' may not be used as an array element due to flexible array member

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 10 13:13:50 PST 2009


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

           Summary: error: 'struct pppoe_tag' may not be used as an array
                    element due to flexible array member
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


getting this when compiling the attached

lev /tmp$ clang -emit-llvm pppoed.c 
In file included from /usr/src/libexec/pppoed/pppoed.c:1:
In file included from /usr/src/libexec/pppoed/pppoed.c:41:
/usr/include/netgraph/ng_pppoe.h:213:22: error: 'struct pppoe_tag' may not be
used as an array element due to flexible array member
 struct pppoe_tag tag[];
                     ^
1 diagnostic generated.


-- 
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