summaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-02 15:59:50 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-02 15:59:50 +0000
commite9360a553082ad9885cf5fd1c060658537ad0de5 (patch)
tree8a8cf2fbbce2ce7e3e9f80eb8c80ad42a8e58c79 /gcc/cp/method.c
parent260a47eca2526ae775527e67472f3e7c1e85adaf (diff)
downloadgcc-e9360a553082ad9885cf5fd1c060658537ad0de5.tar.gz
PR c++/27309
* class.c (add_method): Call grok_special_member_properties. * decl.c (grokdeclarator): Don't call it here. (copy_fn_p): A TEMPLATE_DECL is never a copy constructor or assignment operator. Set TYPE_HAS_CONSTURCTOR if DECL is a constructor. (start_method): Don't call grok_special_member_properties. * method.c (implicitly_declare_fn): Likewise. * pt.c (instantiate_class_template): Likewise. * decl2.c (grokfield): Likewise. PR c++/27309 * g++.dg/parser/ctor5.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113473 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 68ec8ab4181..ddf79bf8e66 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -1083,7 +1083,6 @@ implicitly_declare_fn (special_function_kind kind, tree type, bool const_p)
DECL_ARGUMENTS (fn) = this_parm;
grokclassfn (type, fn, kind == sfk_destructor ? DTOR_FLAG : NO_SPECIAL);
- grok_special_member_properties (fn);
set_linkage_according_to_type (type, fn);
rest_of_decl_compilation (fn, toplevel_bindings_p (), at_eof);
DECL_IN_AGGR_P (fn) = 1;