[Bug c++/14774] inaccessible unused copy constructor diagnostic could be more helpful

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 29 18:24:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list