This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31156] creates reference to copy constructor on use of temporary object
- From: "fang at csl dot cornell dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2007 21:56:38 -0000
- Subject: [Bug c++/31156] creates reference to copy constructor on use of temporary object
- References: <bug-31156-13152@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fang at csl dot cornell dot edu 2007-03-12 21:56 -------
See PR 25950 and PR 12226 (dup).
The resolution is that you need an accessible copy-constructor, regardless of
whether or not the compiler elides it during temporary creation.
--
fang at csl dot cornell dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fang at csl dot cornell dot
| |edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31156