re PR c++/24817 (g++ accepts multiple function template declarations even if exceptio...
authorMark Mitchell <mark@codesourcery.com>
Mon, 14 Nov 2005 05:45:45 +0000 (05:45 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 14 Nov 2005 05:45:45 +0000 (05:45 +0000)
commite1f0e7a6a714a128d9c15fe4050bcc7f0f88e865
tree738e589900c87a98ca78f85d831b4bd4e50600d4
parentc748a2c7c5916c839414d2e78ce1a802dd07150f
re PR c++/24817 (g++ accepts multiple function template declarations even if exception-specification doesn't match.)

PR c++/24817
* decl.c (check_redeclaration_exception_specification): New
function.
(duplicate_decls): Use it.
* error.c (fndecl_to_string): Print the template parameter list.
PR c++/24817
* g++.dg/eh/spec8.C: New test.

From-SVN: r106884
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/spec8.C [new file with mode: 0644]