[LLVMbugs] [Bug 2017] New: clang crashes on array with void size

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 11 20:18:48 PST 2008


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

           Summary: clang crashes on array with void size
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:

void x(); int a() {int r[x()];}

crashes clang -fsyntax-only.

We probably shouldn't be calling isIntegerConstantExpr on expressions that
don't have integer type.


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