This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/37255] std::auto_prtr copy-initialization, base-from-derived (Colvin-Gibbons trick) does not work
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2008 13:43:26 -0000
- Subject: [Bug libstdc++/37255] std::auto_prtr copy-initialization, base-from-derived (Colvin-Gibbons trick) does not work
- References: <bug-37255-16640@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from paolo dot carlini at oracle dot com 2008-08-27 13:43 -------
Yes, given the actual ISO C++ specifications, std::auto_ptr<Base> does not have
a suitable copy constructor, for a temporary, which would be required to
compile the code. We can't do much about this.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37255