http://llvm.org/bugs/show_bug.cgi?id=21935
Bug ID: 21935
Summary: error: cannot initialize a variable of type 'char *'
with an rvalue of type 'const char *'
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 13553
--> http://llvm.org/bugs/attachment.cgi?id=13553&action=edit
testcpp
int main()
{
bool mbool = false;
char *p = mbool?"ssss":"faffafa";
return 0;
}
testchar.cpp:4:8: error: cannot initialize a variable of type 'char *' with an
rvalue of type 'const char *'
char *p = mbool?"ssss":"faffafa";
^ ~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
CL.exe can compile this
--
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