[LLVMbugs] [Bug 6768] New: clang crash on function call with vla argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 2 07:14:35 PDT 2010


           Summary: clang crash on function call with vla argument
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: quickslyver at free.fr
                CC: llvmbugs at cs.uiuc.edu

testcase reduced from vla-4.c gcc torture test

$cat b.c
int foo(int n);
int foo6(int a, int b[a][a]);

int main() {
  int b[10][10];
  foo6(10, b);
  return 0;

$ clang -cc1 -emit-llvm c.c
clang: llvm/tools/clang/lib/CodeGen/CGExpr.cpp:1084: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*):
Assertion `V && "DeclRefExpr not entered in LocalDeclMap?"' failed.
0  clang 0x08f6b498
Stack dump:
0.    Program arguments: clang -cc1 -emit-llvm c.c 
1.    <eof> parser at end of file
2.    c.c:4:5: LLVM IR generation of declaration 'main'
3.    c.c:4:5: Generating code for declaration 'main'
4.    c.c:4:12: LLVM IR generation of compound statement ('{}')

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