[LLVMbugs] [Bug 12142] New: Crash printing error for type mismatch with pointer to array
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 29 14:26:17 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12142
Bug #: 12142
Summary: Crash printing error for type mismatch with pointer to
array
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
void fun(int (*x)[10]);
void g() { fun((const int(*)[10])0); }
Currently gives:
<stdin>:2:12: error: no matching function for call to 'fun'
void g() { fun((const int(*)[10])0); }
^~~
Assertion failed: (!isNull() && "Cannot retrieve a NULL type pointer"),
function getCommonPtr, file [...]/include/clang/AST/Type.h, line 504.
--
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