http://llvm.org/bugs/show_bug.cgi?id=15409
Bug ID: 15409
Summary: Misleading note after error report
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Compiling the following code with clang++ 3.3 (trunk 175876)
-----------------------------------------------------------
int main ()
{
int *x = new int;
return 0;
}
void * operator new(unsigned long size) throw(); // line 8
------------------------------------------------------------
results in the following message:
newt.cc:8:8: error: exception specification in declaration does not match
previous declaration
void * operator new(unsigned long size) throw();
^
note: previous declaration is here
1 error generated.
The note (without a line number) is not particularly useful. Maybe it should
point at line 3 containing "new int"?
--
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