decl.c (xref_tag_1): Change pairs of errors to error + inform.
commitb872d7297d35e31f3254c5476e2ed4fa068e75db
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 2 Jun 2016 23:10:33 +0000 (2 23:10 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 2 Jun 2016 23:10:33 +0000 (2 23:10 +0000)
treea365245cead53b4139687372ac8dba5ad3c9f1cf
parente29525d3df727cf907194af2874d3eb5c774226c
decl.c (xref_tag_1): Change pairs of errors to error + inform.

/cp
2016-06-02  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (xref_tag_1): Change pairs of errors to error + inform.
(start_enum): Likewise.
* parser.c (cp_parser_class_head): Likewise.

/testsuite
2016-06-02  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/forw_enum10.C: Adjust for dg-message vs dg-error.
* g++.dg/cpp0x/forw_enum6.C: Likewise.
* g++.dg/cpp0x/forw_enum8.C: Likewise.
* g++.dg/cpp0x/override2.C: Likewise.
* g++.dg/parse/crash5.C: Likewise.
* g++.dg/parse/error16.C: Likewise.
* g++.dg/parse/error27.C: Likewise.
* g++.dg/template/qualttp15.C: Likewise.
* g++.dg/template/redecl4.C: Likewise.
* g++.old-deja/g++.other/crash39.C: Likewise.
* g++.old-deja/g++.other/struct1.C: Likewise.
* g++.old-deja/g++.pt/m9a.C: Likewise.
* g++.old-deja/g++.pt/memclass10.C: Likewise.

From-SVN: r237046
17 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/forw_enum10.C
gcc/testsuite/g++.dg/cpp0x/forw_enum6.C
gcc/testsuite/g++.dg/cpp0x/forw_enum8.C
gcc/testsuite/g++.dg/cpp0x/override2.C
gcc/testsuite/g++.dg/parse/crash5.C
gcc/testsuite/g++.dg/parse/error16.C
gcc/testsuite/g++.dg/parse/error27.C
gcc/testsuite/g++.dg/template/qualttp15.C
gcc/testsuite/g++.dg/template/redecl4.C
gcc/testsuite/g++.old-deja/g++.other/crash39.C
gcc/testsuite/g++.old-deja/g++.other/struct1.C
gcc/testsuite/g++.old-deja/g++.pt/m9a.C
gcc/testsuite/g++.old-deja/g++.pt/memclass10.C