diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2016-06-02 23:10:33 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2016-06-02 23:10:33 +0000 |
commit | b872d7297d35e31f3254c5476e2ed4fa068e75db (patch) | |
tree | a365245cead53b4139687372ac8dba5ad3c9f1cf /gcc/cp/parser.c | |
parent | e29525d3df727cf907194af2874d3eb5c774226c (diff) | |
download | gcc-b872d7297d35e31f3254c5476e2ed4fa068e75db.zip gcc-b872d7297d35e31f3254c5476e2ed4fa068e75db.tar.gz gcc-b872d7297d35e31f3254c5476e2ed4fa068e75db.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 29a1b80..e01353d 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -22008,8 +22008,8 @@ cp_parser_class_head (cp_parser* parser, { error_at (type_start_token->location, "redefinition of %q#T", type); - error_at (type_start_token->location, "previous definition of %q+#T", - type); + inform (location_of (type), "previous definition of %q#T", + type); type = NULL_TREE; goto done; } |