[LLVMbugs] [Bug 3463] New: error: cannot codegen this constant expression yet

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 2 13:48:57 PST 2009


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

           Summary: error: cannot codegen this constant expression yet
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            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


doug gregor wanted me to show this code snipper:

int bbb[10];

struct foo {
   unsigned a;
};

struct foo bar[] = {
   { (int)&bbb }
};

it emits this error when compiled:

witten /tmp# clang -emit-llvm-bc ara.c
ara.c:8:11: error: cannot codegen this constant expression yet
   { (int)&bbb }
          ^~~~
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