[LLVMbugs] [Bug 15409] New: Misleading note after error report

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 1 09:25:19 PST 2013


            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: unassignedclangbugs at nondot.org
          Reporter: csaba_22 at yahoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130301/c9f0dcb3/attachment.html>

More information about the llvm-bugs mailing list