diff options
author | Mark Mitchell <mark@codesourcery.com> | 2006-04-24 03:50:31 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2006-04-24 03:50:31 +0000 |
commit | e2537f2c039f645cff41975b5a6ddcf26b7c4c79 (patch) | |
tree | aef78361996e61e02ee5a14c7f9d6f1ab2a35d52 /gcc/java/check-init.c | |
parent | d24b23bb89dee07f183cd19a4d77c77a31f511e1 (diff) | |
download | gcc-e2537f2c039f645cff41975b5a6ddcf26b7c4c79.zip gcc-e2537f2c039f645cff41975b5a6ddcf26b7c4c79.tar.gz gcc-e2537f2c039f645cff41975b5a6ddcf26b7c4c79.tar.bz2 |
re PR c++/26912 (friend const member function specialization fails to compile)
PR c++/26912
* cp-tree.h (build_this_parm): Declare.
(grok_method_quals): Remove.
(build_memfn_type): Declare.
(build_artificial_parm): Declare.
(do_friend): Remove quals parameter.
* decl.c (build_this_parm): New function.
(grokfndecl): Use it. Do not pass quals to grokclassfn.
(grokdeclarator): Rename quals to memfn_quals. Avoid allocating
unnecessary TYPE_DECLs. Correct qualification of member function
types. Tidy.
* method.c (implicitly_declare_fn): Use build_this_parm.
* friend.c (do_friend): Remove quals parameter.
* decl2.c (grok_method_quals): Remove.
(build_memfn_type): New function.
(build_artificial_parm): Give it external linkage.
(grokclassfn): Remove quals parameter. Do not build "this"
PARM_DECL here.
PR c++/26912
* g++.dg/template/friend41.C: New test.
From-SVN: r113213
Diffstat (limited to 'gcc/java/check-init.c')
0 files changed, 0 insertions, 0 deletions