[LLVMbugs] [Bug 12049] New: Unhelpful error message for missing closing parenthesis in constructor initialization list
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 21 05:31:43 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: popizdeh at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list