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++/25325] GCC complains about private copy constructor, which must not be used at that point



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


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