summaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2005-11-14 15:07:45 -0500
committerJason Merrill <jason@gcc.gnu.org>2005-11-14 15:07:45 -0500
commit63752e29bbd7fb0d65e9acfbcf5d28715f497266 (patch)
tree47a4a9dd0b3a9124f944303cf55f661076130364 /gcc/cp/method.c
parent8520690170c14805001693fe2fb88bc7b58a8cbf (diff)
downloadgcc-63752e29bbd7fb0d65e9acfbcf5d28715f497266.tar.gz
re PR c++/24580 (virtual base class cause exception not to be caught)
PR c++/24580 * method.c (locate_ctor): Skip all artificial parms, not just 'this'. From-SVN: r106901
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 67e42ea1e0e..82f4a363cc2 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -889,7 +889,9 @@ locate_ctor (tree type, void *client ATTRIBUTE_UNUSED)
tree fn = OVL_CURRENT (fns);
tree parms = TYPE_ARG_TYPES (TREE_TYPE (fn));
- if (sufficient_parms_p (TREE_CHAIN (parms)))
+ parms = skip_artificial_parms_for (fn, parms);
+
+ if (sufficient_parms_p (parms))
return fn;
}
return NULL_TREE;