This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24817] [3.4/4.0/4.1 Regression] g++ accepts multiple function template declarations even if exception-specification doesn't match.
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2005 05:45:52 -0000
- Subject: [Bug c++/24817] [3.4/4.0/4.1 Regression] g++ accepts multiple function template declarations even if exception-specification doesn't match.
- References: <bug-24817-2491@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from mmitchel at gcc dot gnu dot org 2005-11-14 05:45 -------
Subject: Bug 24817
Author: mmitchel
Date: Mon Nov 14 05:45:45 2005
New Revision: 106884
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106884
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/eh/spec8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/error.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24817