[LLVMbugs] [Bug 20257] invalid 'const' not rejected on constructor definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 9 09:07:56 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20257

David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |david.majnemer at gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #1 from David Majnemer <david.majnemer at gmail.com> ---
This is a duplicate of a bug I recently filed and fixed.

Clang now treats your example as such:
<stdin>:4:1: error: constructor cannot have a return type
const X::X() { }
^~~~~~

*** This bug has been marked as a duplicate of bug 20238 ***

-- 
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/20140709/04aa48e2/attachment.html>


More information about the llvm-bugs mailing list