http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53220
--- Comment #11 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-05-17 00:02:33 UTC --- (In reply to comment #10) > C++98 and C++11 define the lifetime of a temporary as lasting until the end of > the full-expression, unless its lifetime is extended by binding it to a > reference. G++ treats compound literals as temporaries like any other. So, as far as I understand: 1. the example with literal arrays in the documentation is invalid in C++, 2. I should fix C++ code that uses them 3. all that remains in this bug is to issue diagnostics for them