diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-14 05:45:45 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-14 05:45:45 +0000 |
commit | 4f7b3f585b1d902edb4dc1419ef5fc3edf9924ea (patch) | |
tree | 738e589900c87a98ca78f85d831b4bd4e50600d4 /gcc/cp/error.c | |
parent | 802419d828bbdffccea76f6fefc539dfa4118964 (diff) | |
download | ppe42-gcc-4f7b3f585b1d902edb4dc1419ef5fc3edf9924ea.tar.gz ppe42-gcc-4f7b3f585b1d902edb4dc1419ef5fc3edf9924ea.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 22c2d304d88..674e407055f 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2008,7 +2008,8 @@ fndecl_to_string (tree fndecl, int verbose) { int flags; - flags = TFF_EXCEPTION_SPECIFICATION | TFF_DECL_SPECIFIERS; + flags = TFF_EXCEPTION_SPECIFICATION | TFF_DECL_SPECIFIERS + | TFF_TEMPLATE_HEADER; if (verbose) flags |= TFF_FUNCTION_DEFAULT_ARGUMENTS; reinit_cxx_pp (); |