[Bug c++/24817] [3.4/4.0/4.1 Regression] g++ accepts multiple function template declarations even if exception-specification doesn't match.
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Nov 14 05:45:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list