[LLVMbugs] [Bug 6371] New: Assertion failed: (TInfo && "couldn't build declarator info for anonymous struct/union")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 21 13:05:08 PST 2010


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

           Summary: Assertion failed: (TInfo && "couldn't build declarator
                    info for anonymous struct/union")
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P5
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hinokind at gmail.com
   Estimated Hours: 0.0


Created an attachment (id=4267)
 --> (http://www.llvm.org/bugs/attachment.cgi?id=4267)
testcase

clang r96756

$ cat assert.c
typedef struct {
 struct {
extern foo bar;

$ clang assert.c
assert.c:3:8: error: unknown type name 'foo'
extern foo bar;
       ^
assert.c:3:1: error: type name does not allow storage class to be specified
extern foo bar;
^
assert.c:3:16: error: expected '}'
extern foo bar;
               ^
assert.c:2:9: note: to match this '{'
 struct {
        ^
assert.c:3:16: error: expected ';' after struct
extern foo bar;
               ^
               ;
Assertion failed: (TInfo && "couldn't build declarator info for anonymous
struct/union"), function BuildAnonymousStructOrUnion, file SemaDecl.cpp, line
1656.
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-ofIwM5.s -x c assert.c 
1.    assert.c:3:16: current parser token ''
2.    assert.c:1:9: parsing struct/union body
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the llvm-bugs mailing list