http://llvm.org/bugs/show_bug.cgi?id=16430
Bug ID: 16430
Summary: Terrible error message for missing semicolon defining
constructor after class
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
class C {
C();
}
C::C() {}
<stdin>:4:4: error: member 'C' has the same name as its class
C::C() {}
^
<stdin>:1:7: error: 'C' can not be defined in the result type of a function
class C {
^
<stdin>:4:4: error: constructor cannot have a return type
C::C() {}
^
3 errors 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