This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25325] GCC complains about private copy constructor, which must not be used at that point
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Dec 2005 11:37:44 -0000
- Subject: [Bug c++/25325] GCC complains about private copy constructor, which must not be used at that point
- References: <bug-25325-8984@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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