[LLVMbugs] [Bug 16430] New: Terrible error message for missing semicolon defining constructor after class

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 24 13:00:24 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: sharparrow1 at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130624/2672190d/attachment.html>


More information about the llvm-bugs mailing list