[llvm-bugs] [Bug 31656] New: Clang-CL ICE with template-sized array args

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 16 09:53:20 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31656

            Bug ID: 31656
           Summary: Clang-CL ICE with template-sized array args
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: steveire at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

template <int MXLENGTH>
void __cdecl helper(int args[MXLENGTH])
{
}

void __cdecl myFunction()
{
    int    args[1];

    helper<1>(args);
}


"C:\Program Files\LLVM\msbuild-bin\CL.exe" /c source_file.cpp
Assertion failed: (isGenericMethod || ((*I)->isVariablyModifiedType() ||
(*I).getNonReferenceType()->isObjCRetainableType() || getContext()
.getCanonicalType((*I).getNonReferenceType()) .getTypePtr() == getContext()
.getCanonicalType((*Arg)->getType()) .getTypePtr())) && "type mismatch in call
argument!", file
D:\src\llvm_package_291454\llvm\tools\clang\lib\CodeGen/CodeGenFunction.h, line
3561

Using the January 9th 64 bit windows snapshot from http://llvm.org/builds/

-- 
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/20170116/d34f5f60/attachment.html>


More information about the llvm-bugs mailing list