This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14774] inaccessible unused copy constructor diagnostic could be more helpful
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2004 18:24:50 -0000
- Subject: [Bug c++/14774] inaccessible unused copy constructor diagnostic could be more helpful
- References: <20040329173644.14774.mdorey@bluearc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-29 18:24 -------
And it is documented in <http://gcc.gnu.org/gcc-3.4/changes.html> and <http://gcc.gnu.org/
bugs.html#cxx_rvalbind> what this means.
This is a dup of bug 13986 and bug 14618 (which was the one which was closed after documentation
was added about this).
The error message is correct (see bug 13986). From that bug:
A conforming implementation is allowed to actually call the copy constructor in
this case. It is purely an optimization to elide it. The error message is what
you would get if G++ actually did call the copy constructor. Therefore, the
message is consistent with the standard.
*** This bug has been marked as a duplicate of 14618 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14774