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