http://llvm.org/bugs/show_bug.cgi?id=12049
Bug #: 12049
Summary: Unhelpful error message for missing closing
parenthesis in constructor initialization list
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
int function();
class Class
{
public:
Class() : member(function() {}
int member;
};
Clang diagnostics:
test.cpp:8:15: error: expected '{'
int member;
^
1 error generated.
GCC diagnostics:
test.cpp: In constructor 'Class::Class()':
test.cpp:6:15: error: class 'Class' does not have any field named 'member'
test.cpp:6:33: error: expected ')' before '{' token
test.cpp:8:9: error: expected '{' at end of input
--
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