Commit f1dbbe42 by Kai Tietz Committed by Kai Tietz

re PR c++/58873 ([c++11] ICE with __underlying_type for broken enum)

	PR c++/58873
	* parser.c (cp_parser_functional_cast): Treat NULL_TREE
	valued type argument as error_mark_node.

From-SVN: r207961
parent 7f5e8188
2014-02-20 Kai Tietz <ktietz@redhat.com>
PR c++/58873
* parser.c (cp_parser_functional_cast): Treat NULL_TREE
valued type argument as error_mark_node.
PR c++/58835
* semantics.c (finish_fname): Handle error_mark_node.
......
......@@ -23165,6 +23165,9 @@ cp_parser_functional_cast (cp_parser* parser, tree type)
tree cast;
bool nonconst_p;
if (!type)
type = error_mark_node;
if (cp_lexer_next_token_is (parser->lexer, CPP_OPEN_BRACE))
{
maybe_warn_cpp0x (CPP0X_INITIALIZER_LISTS);
......
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