* semantics.c (finish_compound_literal): Don't create a static variable
inside cp_unevaluated_operand.
From-SVN: r204228
2013-10-30 Jason Merrill <jason@redhat.com>
+ * semantics.c (finish_compound_literal): Don't create a static variable
+ inside cp_unevaluated_operand.
+
* init.c (push_base_cleanups): Check ANON_AGGR_TYPE_P.
2013-10-30 Tobias Burnus <burnus@net-b.de>
if ((!at_function_scope_p () || CP_TYPE_CONST_P (type))
&& TREE_CODE (type) == ARRAY_TYPE
&& !TYPE_HAS_NONTRIVIAL_DESTRUCTOR (type)
+ && !cp_unevaluated_operand
&& initializer_constant_valid_p (compound_literal, type))
{
tree decl = create_temporary_var (type);