[Bug c++/53220] [4.7/4.8 Regression] g++ mis-compiles compound literals

xinliangli at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon May 7 16:25:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53220

--- Comment #5 from davidxl <xinliangli at gmail dot com> 2012-05-07 16:18:13 UTC ---
So it is possible either 
1) to keep the current G++ semantics of compound literals, but change its
behavior due to the implementation change (with clobber marker); 
or
2) to change hte G++ semantics to match C semantic, but keep the compiler
behavior the same

Which way to go? If we go for 1), we probably just need to document this
behavior better in GCC, and let user change their code.

David



More information about the Gcc-bugs mailing list