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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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

Reply via email to