[LLVMbugs] [Bug 1918] New: clang asserts when including gcc's C99 math.h header.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 15 02:06:03 PST 2008


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

           Summary: clang asserts when including gcc's C99 math.h header.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: csaba.hruska at gmail.com
                CC: llvmbugs at cs.uiuc.edu


cat test2.c
#include <math.h>

ccc -c test2.c
clang -emit-llvm-bc -o test2.o -U__GNUC__
-I/usr/lib/gcc/i486-linux-gnu/4.1.3/include test2.c
clang: CodeGenModule.cpp:304: llvm::Constant* GenerateAggregateInit(const
clang::InitListExpr*, clang::CodeGen::CodeGenModule&): Assertion
`(ILE->getType()->isArrayType() || ILE->getType()->isStructureType()) && "Bad
type for init list!"' failed.
clang((anonymous namespace)::PrintStackTrace()+0x19)[0x82af049]
/lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7d14201]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xee)[0xb7d0bb6e]
clang[0x80eedc1]


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