* parser.c (cp_parser_initializer_clause): Don't call
maybe_constant_value here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@180204
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-10-19 Jason Merrill <jason@redhat.com>
+
+ PR c++/50787
+ * parser.c (cp_parser_initializer_clause): Don't call
+ maybe_constant_value here.
+
2011-10-18 Jason Merrill <jason@redhat.com>
PR c++/50531
= cp_parser_constant_expression (parser,
/*allow_non_constant_p=*/true,
non_constant_p);
- if (!*non_constant_p)
- {
- /* We only want to fold if this is really a constant
- expression. FIXME Actually, we don't want to fold here, but in
- cp_finish_decl. */
- tree folded = fold_non_dependent_expr (initializer);
- folded = maybe_constant_value (folded);
- if (TREE_CONSTANT (folded))
- initializer = folded;
- }
}
else
initializer = cp_parser_braced_list (parser, non_constant_p);