Commit 574f9d7e by Jakub Jelinek Committed by Jakub Jelinek

parser.c (cp_parser_braced_list): For {} initialize *non_constant_p to false.

	* parser.c (cp_parser_braced_list): For {} initialize
	*non_constant_p to false.

From-SVN: r196463
parent 5e7f1aef
2013-03-05 Jakub Jelinek <jakub@redhat.com>
* parser.c (cp_parser_braced_list): For {} initialize
*non_constant_p to false.
2013-03-04 Jason Merrill <jason@redhat.com> 2013-03-04 Jason Merrill <jason@redhat.com>
PR c++/56464 PR c++/56464
......
...@@ -17854,6 +17854,8 @@ cp_parser_braced_list (cp_parser* parser, bool* non_constant_p) ...@@ -17854,6 +17854,8 @@ cp_parser_braced_list (cp_parser* parser, bool* non_constant_p)
if (cp_lexer_next_token_is (parser->lexer, CPP_COMMA)) if (cp_lexer_next_token_is (parser->lexer, CPP_COMMA))
cp_lexer_consume_token (parser->lexer); cp_lexer_consume_token (parser->lexer);
} }
else
*non_constant_p = false;
/* Now, there should be a trailing `}'. */ /* Now, there should be a trailing `}'. */
cp_parser_require (parser, CPP_CLOSE_BRACE, RT_CLOSE_BRACE); cp_parser_require (parser, CPP_CLOSE_BRACE, RT_CLOSE_BRACE);
TREE_TYPE (initializer) = init_list_type_node; TREE_TYPE (initializer) = init_list_type_node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment