call.c (build_new_method_call_1): Use constructo_name to get ctor name.
authorNathan Sidwell <nathan@acm.org>
Fri, 30 Jun 2017 13:11:01 +0000 (13:11 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 30 Jun 2017 13:11:01 +0000 (13:11 +0000)
commit3b5c768c40c78618962f2d6e86c9c7affdf86eb8
treea9683d93df9f154a3ec979e2bb90a898310ff3a7
parent274c15162b9b023b8569fa39481ad1a0b7ed0070
call.c (build_new_method_call_1): Use constructo_name to get ctor name.

* call.c (build_new_method_call_1): Use constructo_name to get
ctor name.  Move argument processing earlier to merge cdtor
handling blocks.
* decl.c (grokfndecl): Cdtors have special names.
* method.c (implicitly_declare_fn): Likewise. Simplify flag setting.
* pt.c (check_explicit_specialization): Cdtor name is already
special.
* search.c (class_method_index_for_fn): Likewise.

* g++.dg/plugin/decl-plugin-test.C: Expect special ctor name.

From-SVN: r249838
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/plugin/decl-plugin-test.C