This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24817] [3.4/4.0/4.1 Regression] g++ accepts multiple function template declarations even if exception-specification doesn't match.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]