[LLVMbugs] [Bug 3622] New: Assertion failed: (success && " Illegal argument to getIntegerConstantExpr"), function getIntegerConstantExprValue, file /Users/ddunbar/llvm/tools/clang /lib/AST/../../include/clang/AST/Expr.h, line 172.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Feb 19 11:05:59 PST 2009


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

           Summary: Assertion failed: (success && "Illegal argument to
                    getIntegerConstantExpr"), function
                    getIntegerConstantExprValue, file
                    /Users/ddunbar/llvm/tools/clang/lib/AST/../../include/cl
                    ang/AST/Expr.h, line 172.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


clang asserts on the following code. offsetof is not always evaluatable, we
need to change evaluateOffsetOf (and preferably suck into Evaluate?).
--
struct s {
  int arr[10];
};

int b;
int a[__builtin_offsetof(struct s, arr[b])];
--


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