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

           Summary: llvm-gcc error on static initializer
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


GCC 4.2 (and other versions) accept this C testcase without error:


void *p = ((void*)&((char*)0)[0]);


llvm-gcc-4.2 rejects it with this message:

t.c:1: error: initializer element is not constant

This is reproducible on both trunk and the 2.4 prerelease.

This prevents llvm-gcc from compiling SQLite version 3.6.4,
which is the current version at this time.  The specific
error message is:

sqlite3.c:12108: error: initializer element is not constant


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to