diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/parser.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4a526b9..dc7708b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,9 @@ 2018-03-14 Jason Merrill <jason@redhat.com> + PR c++/84820 - no error for invalid qualified-id. + * parser.c (cp_parser_make_indirect_declarator): Don't wrap + cp_error_declarator. + PR c++/84801 - ICE with unexpanded pack in lambda. * pt.c (check_for_bare_parameter_packs): Don't return early for a lambda in non-template context. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 0a82f41..119f6c0 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -3823,7 +3823,7 @@ cp_parser_make_indirect_declarator (enum tree_code code, tree class_type, cp_declarator *target, tree attributes) { - if (code == ERROR_MARK) + if (code == ERROR_MARK || target == cp_error_declarator) return cp_error_declarator; if (code == INDIRECT_REF) |