https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61614
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- It's r204228: 2013-10-30 Jason Merrill <ja...@redhat.com> * semantics.c (finish_compound_literal): Don't create a static variable inside cp_unevaluated_operand. indeed, the error happens in decay_conversion in: if (TREE_CODE (exp) == TARGET_EXPR) { if (complain & tf_error) error_at (loc, "taking address of temporary array"); where we have a TARGET_EXPR (vs a VAR_DECL).