[LLVMbugs] [Bug 17898] const qualifier accepted on ctor declaration/definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 25 13:36:06 PST 2014


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

Nathan Sidwell <nathan at acm.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |nathan at acm.org
         Resolution|---                         |FIXED

--- Comment #2 from Nathan Sidwell <nathan at acm.org> ---
This appears resolved:
17898.cc:4:3: error: constructor cannot have a return type
  const X() { i=0; }
  ^~~~~~

A similar error is emitted for volatile

-- 
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/20141125/7750fcde/attachment.html>


More information about the llvm-bugs mailing list