Fix g++.dg/template/pr84789.C on new concepts branch.
authorJason Merrill <jason@redhat.com>
Tue, 16 Jul 2019 08:49:04 +0000 (04:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 16 Jul 2019 08:49:04 +0000 (04:49 -0400)
commit19bd90282641da569f3da6c26eac3fd248296cb2
treecfa7eca50987876191344625432b6f5ceb30e7ab
parent10b04d1e0b3f4435a8f2e806fddf12ff8b864623
Fix g++.dg/template/pr84789.C on new concepts branch.

On the concepts branch I ran into trouble where a pre-parsed dependent
nested-name-specifier got replaced on a subsequent parse with is_declaration
by one with typenames resolved, which was then used wrongly on a further
parse with !is_declaration.

    * parser.c (cp_parser_nested_name_specifier_opt): If the token is
    already CPP_NESTED_NAME_SPECIFIER, leave it alone.

From-SVN: r273513
gcc/cp/ChangeLog
gcc/cp/parser.c