parser.c (cp_parser_alias_declaration): Don't do semantic processing if parsing failed.
* parser.c (cp_parser_alias_declaration): Don't do semantic processing if parsing failed. From-SVN: r181218
This commit is contained in:
parent
161f270d4e
commit
78d16361e1
|
@ -1,3 +1,8 @@
|
|||
2011-11-09 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* parser.c (cp_parser_alias_declaration): Don't do semantic
|
||||
processing if parsing failed.
|
||||
|
||||
2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/51045
|
||||
|
|
|
@ -14946,6 +14946,9 @@ cp_parser_alias_declaration (cp_parser* parser)
|
|||
type = cp_parser_type_id (parser);
|
||||
cp_parser_require (parser, CPP_SEMICOLON, RT_SEMICOLON);
|
||||
|
||||
if (cp_parser_error_occurred (parser))
|
||||
return error_mark_node;
|
||||
|
||||
/* A typedef-name can also be introduced by an alias-declaration. The
|
||||
identifier following the using keyword becomes a typedef-name. It has
|
||||
the same semantics as if it were introduced by the typedef
|
||||
|
|
Loading…
Reference in New Issue