diff options
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index beb0a24..f6024cd 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -498,7 +498,8 @@ forward_parm (tree parm) tree strip_inheriting_ctors (tree dfn) { - gcc_assert (flag_new_inheriting_ctors); + if (!flag_new_inheriting_ctors) + return dfn; tree fn = dfn; while (tree inh = DECL_INHERITED_CTOR (fn)) { |