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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to