https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92594
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-11-20
Known to work| |9.2.1
Ever confirmed|0 |1
Known to fail| |10.0
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Regressed with r276968:
PR c++/91930 - ICE with constrained inherited default ctor.
The testcase was crashing because lazily_declare_fn was failing to add a
defaulted constructor, because the implicit declaration was less
constrained
than the inherited default constructor. But when we have an inherited
constructor, we shouldn't be trying to declare a default constructor in the
first place, because it counts as "a user-declared constructor". With that
fixed I needed to adjust a couple of inherited constructor testcases that
previously had been diagnosing the default constructor as deleted rather
than not declared.
* name-lookup.c (do_class_using_decl): Set
TYPE_HAS_USER_CONSTRUCTOR
for inherited constructor.