[Bug c++/25325] GCC complains about private copy constructor, which must not be used at that point

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Fri Dec 9 11:37:00 GMT 2005



------- Comment #1 from pcarlini at suse dot de  2005-12-09 11:37 -------
This is not a bug: see 8.5.3/5. Roughly, when you have an rvalue (like
NonCopyable()) it's implementation defined whether the constructor is called,
and, in any case, "The constructor that would be used to make the copy shall be
callable whether or not the copy is actually done". 


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25325



More information about the Gcc-bugs mailing list