re PR c++/62315 (do not print typename in diagnostic if the original code does not...
commit22235619ba63b4a17f2b208958f467233c84bdb7
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 24 Jun 2017 19:31:24 +0000 (24 19:31 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 24 Jun 2017 19:31:24 +0000 (24 19:31 +0000)
tree2889dba40a175463ca568790a086f71d98ad18b0
parente56e3fda6092548f3cd5336d131b412be986b1e6
re PR c++/62315 (do not print typename in diagnostic if the original code does not have it)

/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.

From-SVN: r249626
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/typedef2.C