[LLVMbugs] [Bug 12182] New: Crash instead of call to function with array param and init list as argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 4 14:26:19 PST 2012


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

             Bug #: 12182
           Summary: Crash instead of call to function with array param and
                    init list as argument
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: schaub.johannes at googlemail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


void f(int const(&)[3]) {}

int main() {
    f({1, 2});
}

Results in:

C:\Users\Johannes\Documents\Cpp>clang++ -std=c++0x test.cpp
Assertion failed!

Program: C:\Users\Johannes\Svn\llvm-build\bin\clang++.exe
File: C:\Users\Johannes\Svn\llvm\tools\clang\lib\Sema\SemaInit.cpp, Line 2298

Expression: CT && "Unexpected type"

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
clang++: error: clang frontend command failed with exit code 3 (use -v to see
invocation)

-- 
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