https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84789

--- Comment #7 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Author: aoliva
Date: Wed Mar 28 05:05:30 2018
New Revision: 258915

URL: https://gcc.gnu.org/viewcvs?rev=258915&root=gcc&view=rev
Log:
[PR c++/84789] adjust testcase for -fconcepts

When compiling with -fconcepts,
cp_parser_template_declaration_after_export calls
cp_parser_template_introduction and that preparses qualified-ids not
preceded by typename in such a way that, when we get to
cp_parser_parse_and_diagnose_invalid_type_name and then
cp_parser_diagnose_invalid_type_name, the nested name specifier no
longer carries the previous template-dependent context, so we don't
stand a chance to suggest the use of 'typename' any more.  Thus,
tolerate in the testcase the poorer error messages we get.

for  gcc/testsuite/ChangeLog

        PR c++/84789
        * g++.dg/template/pr84789.C: Adjust for testing with
        -fconcepts too.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/pr84789.C

Reply via email to