[Bug c++/57610] Reference initialized with temporary instead of sub-object of conversion result
o_kniemeyer at maxon dot net
gcc-bugzilla@gcc.gnu.org
Fri Jun 14 13:51:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57610
--- Comment #4 from Ole Kniemeyer <o_kniemeyer at maxon dot net> ---
As I commented in the cpp example, the C++11 standard shows exactly this
example in sections 8.5.3. So this is definitely a bug according to C++11. I
think the GCC behaviour is correct according to older C++11 standards.
More information about the Gcc-bugs
mailing list