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

           Summary: ICE doesn't consider addrof as constant
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


isConstantExpression() doesn't consider adresses as constant.
This can be seen by running 'clang -emit-llvm' with the following code:

struct s { void *p; };

void foo(void) {
        static struct s var = {((void*)&((char*)0)[0])};
}


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