This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]