[LLVMbugs] [Bug 2832] New: ICE doesn't consider addrof as constant

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Sep 26 15:19:54 PDT 2008


           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: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu

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.

More information about the llvm-bugs mailing list