[Bug c++/62315] do not print typename in diagnostic if the original code does not have it

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 24 19:33:00 GMT 2017


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

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sat Jun 24 19:31:24 2017
New Revision: 249626

URL: https://gcc.gnu.org/viewcvs?rev=249626&root=gcc&view=rev
Log:
/cp
2017-06-24  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/62315
        * parser.c (cp_parser_diagnose_invalid_type_name): Don't print
        'typename' in error messages about missing 'typename'.

/testsuite
2017-06-24  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/62315
        * g++.dg/parse/typedef2.C: Specify a dg-error string.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/typedef2.C


More information about the Gcc-bugs mailing list