diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2002-09-14 23:19:48 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2002-09-14 23:19:48 +0000 |
commit | c8460010fab905e8441a1d15f859da8ffb6fceda (patch) | |
tree | d19375b92220e72e0657ab729b4ab108e103c8bd /gcc/cp | |
parent | 981f97c3641ce62391dffab22c971266cbaa057b (diff) | |
download | gcc-c8460010fab905e8441a1d15f859da8ffb6fceda.zip gcc-c8460010fab905e8441a1d15f859da8ffb6fceda.tar.gz gcc-c8460010fab905e8441a1d15f859da8ffb6fceda.tar.bz2 |
re PR c++/7768 (__PRETTY_FUNCTION__ for template destructor is wrong)
cp:
PR c++/7768
* pt.c (build_template_decl): Copy DECL_DESTRUCTOR_P.
testsuite:
* g++.dg/template/pretty1.C: New test
From-SVN: r57152
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/pt.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bbdbef0..b8051cc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2002-09-14 Nathan Sidwell <nathan@codesourcery.com> + + PR c++/7768 + * pt.c (build_template_decl): Copy DECL_DESTRUCTOR_P. + 2002-09-14 Kazu Hirata <kazu@cs.umass.edu> * error.c: Fix comment formatting. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e05174f..12c420a 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -2110,6 +2110,7 @@ build_template_decl (decl, parms) DECL_VIRTUAL_CONTEXT (tmpl) = DECL_VIRTUAL_CONTEXT (decl); DECL_STATIC_FUNCTION_P (tmpl) = DECL_STATIC_FUNCTION_P (decl); DECL_CONSTRUCTOR_P (tmpl) = DECL_CONSTRUCTOR_P (decl); + DECL_DESTRUCTOR_P (tmpl) = DECL_DESTRUCTOR_P (decl); DECL_NONCONVERTING_P (tmpl) = DECL_NONCONVERTING_P (decl); DECL_ASSIGNMENT_OPERATOR_P (tmpl) = DECL_ASSIGNMENT_OPERATOR_P (decl); if (DECL_OVERLOADED_OPERATOR_P (decl)) |