* decl.c (warn_extern_redeclared_static): Use the location of
commitc562a640a30dc788e9e55cc72fcad882dcac2480
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 May 2015 20:52:55 +0000 (27 20:52 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 May 2015 20:52:55 +0000 (27 20:52 +0000)
tree8269ddf1d0aef464dcc47583931bb7f030cbb742
parent9521eda400c45a0837afea07cc573abaec6f379a
* decl.c (warn_extern_redeclared_static): Use the location of
newdecl in diagnostics, not input_location.
(validate_constexpr_redeclaration): Likewise.
(check_redeclaration_no_default_args): Likewise.
(duplicate_decls): Likewise.
(check_redeclaration_exception_specification): Likewise.
Change second diagnostic to inform.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223777 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/noexcept02.C
gcc/testsuite/g++.dg/eh/spec8.C
gcc/testsuite/g++.dg/ext/attrib51.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/error3.C
gcc/testsuite/g++.dg/template/error36.C
gcc/testsuite/g++.old-deja/g++.eh/spec6.C