http://llvm.org/bugs/show_bug.cgi?id=16314
Bug ID: 16314
Summary: clang allows conversion from string literal to
non-const char* in C++11 mode
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
Clang rejects this valid C++11 code:
void f(char*);
int &f(...);
int &r = f("foo");
There is no conversion from string literal to non-const char* in C++11.
--
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