diff options
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index a478de8..3e1b44a 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -2807,6 +2807,12 @@ one_inherited_ctor (tree ctor, tree t) new_parms[i++] = TREE_VALUE (parms); } one_inheriting_sig (t, ctor, new_parms, i); + if (parms == NULL_TREE) + { + warning (OPT_Winherited_variadic_ctor, + "the ellipsis in %qD is not inherited", ctor); + inform (DECL_SOURCE_LOCATION (ctor), "%qD declared here", ctor); + } } /* Create default constructors, assignment operators, and so forth for |