[LLVMbugs] [Bug 19564] error: addition of default argument on redeclaration makes this constructor a default constructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 25 13:03:08 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19564
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #0)
> The latest gcc-4.9 release compiles without error. However, ToT clang
> produces an error.
We're not in the habit of making up language rules =) See C++14 8.3.6/6 (and
DR1344):
"Except for member functions of class templates, the default arguments in a
member function definition that appears outside of the class definition are
added to the set of default arguments provided by the member function
declaration in the class definition; the program is ill-formed if a default
constructor (12.1), copy or move constructor, or copy or move assignment
operator (12.8) is so declared."
Maybe file a bug with gcc?
--
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/20140425/3488ba87/attachment.html>
More information about the llvm-bugs
mailing list