mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 20:41:10 +08:00
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
This commit is contained in:
parent
7f5e818877
commit
f1dbbe422e
@ -1,5 +1,9 @@
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user