class.c (add_method): Change pair of errors to error + inform.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 29 Jun 2017 22:32:33 +0000 (22:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 29 Jun 2017 22:32:33 +0000 (22:32 +0000)
commit8e09cb8b390102c09039c3c31ab1c0df4114e3da
tree65e1720c376a17939646b687eadfb6b24e5b61e9
parent0395a464ed59ff246b97bad727bc0d81bbb5d017
class.c (add_method): Change pair of errors to error + inform.

/cp
2017-06-29  Paolo Carlini  <paolo.carlini@oracle.com>

* class.c (add_method): Change pair of errors to error + inform.
(handle_using_decl): Likewise.

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

* g++.dg/cpp0x/inh-ctor3.C: Adjust for dg-message vs dg-error.
* g++.dg/diagnostic/variadic1.C: Likewise.
* g++.dg/gomp/udr-3.C: Likewise.
* g++.dg/overload/error1.C: Likewise.
* g++.dg/overload/error2.C: Likewise.
* g++.dg/template/duplicate1.C: Likewise.
* g++.old-deja/g++.benjamin/warn02.C: Likewise.
* g++.old-deja/g++.brendan/arm2.C: Likewise.
* g++.old-deja/g++.other/redecl2.C: Likewise.
* g++.old-deja/g++.other/redecl4.C: Likewise.
* g++.old-deja/g++.pt/memtemp78.C: Likewise.

From-SVN: r249820
14 files changed:
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/inh-ctor3.C
gcc/testsuite/g++.dg/diagnostic/variadic1.C
gcc/testsuite/g++.dg/gomp/udr-3.C
gcc/testsuite/g++.dg/overload/error1.C
gcc/testsuite/g++.dg/overload/error2.C
gcc/testsuite/g++.dg/template/duplicate1.C
gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C
gcc/testsuite/g++.old-deja/g++.brendan/arm2.C
gcc/testsuite/g++.old-deja/g++.other/redecl2.C
gcc/testsuite/g++.old-deja/g++.other/redecl4.C
gcc/testsuite/g++.old-deja/g++.pt/memtemp78.C