[LLVMbugs] [Bug 21915] New: Assertion Failed on multidimensional VLA in function arguments.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 15 03:20:38 PST 2014


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

            Bug ID: 21915
           Summary: Assertion Failed on multidimensional VLA in function
                    arguments.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: a.bataev at gmx.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Debug version of clang crashes with the following diagnostic:
Assertion failed: (getContext()
.getCanonicalType(ArgType.getNonReferenceType()) .getTypePtr() ==
getContext().getCanonicalType(ActualArgType).getTypePtr() && "type mismatch in
call argument!"), function EmitCallArgs, file
/export/bpart/_users/abataev/development/llvm_commit7/tools/clang/lib/CodeGen/CodeGenFunction.h,
line 2768

Here is the reproducer:
int c[1][3*2];
int f(int * const m, int (**v)[*m * 2])
{
    return &(c[0][*m]) == &((*v)[0][*m]);
}
int main()
{
    int m = 3;
    int (*d)[3*2] = c;
    return f(&m, &d);
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141215/94131dae/attachment.html>


More information about the llvm-bugs mailing list