[Bug c++/31156] creates reference to copy constructor on use of temporary object
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-12 21:59 --- *** This bug has been marked as a duplicate of 25950 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --
[Bug c++/31156] creates reference to copy constructor on use of temporary object
--- 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 e