http://llvm.org/bugs/show_bug.cgi?id=22073
Bug ID: 22073
Summary: Regression for array initialized with __func__
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following source used to compile but currently give parse error (r224986).
FWIW in gcc it is compiled without errors.
$ cat p.cc
void f() {
decltype(__func__) v = __func__;
}
$ clang++ -cc1 -std=c++11 p.cc
p.cc:2:22: error: array initializer must be an initializer list or string
literal
decltype(__func__) v = __func__;
^
1 error generated.
--
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