===================================================================
@@ -8002,7 +8002,9 @@ explain_invalid_constexpr_fn (tree fun)
tree body;
location_t save_loc;
/* Only diagnose defaulted functions or instantiations. */
- if (!DECL_DEFAULTED_FN (fun)
+ if ((!DECL_DEFAULTED_FN (fun)
+ || (DECL_INHERITED_CTOR_BASE (fun)
+ && TREE_CODE (fun) == TEMPLATE_DECL))
&& !is_instantiation_of_constexpr (fun))
return;
if (diagnosed == NULL)
===================================================================
@@ -0,0 +1,14 @@
+// PR c++/60389
+// { dg-do compile { target c++11 } }
+
+struct A
+{
+ template<typename...T> A(T...) {}
+};
+
+struct B : A
+{
+ using A::A;
+};
+
+constexpr B b; // { dg-error "literal" }