This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53220] [4.7/4.8 Regression] g++ mis-compiles compound literals
- From: "xinliangli at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 May 2012 16:18:13 +0000
- Subject: [Bug c++/53220] [4.7/4.8 Regression] g++ mis-compiles compound literals
- Auto-submitted: auto-generated
- References: <bug-53220-4@http.gcc.gnu.org/bugzilla/>
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