[LLVMbugs] [Bug 7642] New: typedef struct { ... } foo; does not work

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 14 08:45:27 PDT 2010


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

           Summary: typedef struct { ... } foo; does not work
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ps at kr.tuwien.ac.at
                CC: llvmbugs at cs.uiuc.edu


The following minimal example does not compile:

$ cat c.c
typedef struct { int j; } foo;
$ clang -v c.c
clang version 1.1 (branches/release_27)
Target: i386-pc-linux-gnu
Thread model: posix
 "/home/staff/ps/bin/clang" -cc1 -triple i386-pc-linux-gnu -S -disable-free
-main-file-name c.c -mrelocation-model static -mdisable-fp-elim
-mconstructor-aliases -target-cpu pentium4 -v -resource-dir
/home/staff/ps/lib/clang/1.1 -fmessage-length 149 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-lzS8QT.s -x c c.c
clang -cc1 version 1.1 based upon llvm 2.7 hosted on i386-pc-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
 /home/staff/ps/lib/clang/1.1/include
 /usr/local/include
 /usr/include
End of search list.
0  clang 0x08f57118
Stack dump:
0.      Program arguments: /home/staff/ps/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name c.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -v
-resource-dir /home/staff/ps/lib/clang/1.1 -fmessage-length 149 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-lzS8QT.s -x c c.c
1.      <eof> parser at end of file
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)


This feature is used extensively in linux system headers, so i cannot compile
anything here with clang (openSUSE 11.0 (i586)).

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