[LLVMbugs] [Bug 7827] Clang bug with C99 array as parameter
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 22 03:33:01 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7827
Nathan Whitehorn <whitehorn at wisc.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #2 from Nathan Whitehorn <whitehorn at wisc.edu> 2010-09-22 05:33:00 CDT ---
The fix appears to work only when NULL is passed for the array. If you pass an
actual array (e.g. in the following modified test case), clang still exits with
the original error.
void function(short width, int data[][width]) {}
void test() {
int bork[4][1];
function(1, bork);
}
Error:
clang: CGExpr.cpp:1169: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*):
Assertion `V && "DeclRefExpr not entered in LocalDeclMap?"' failed.
--
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