https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94476
Nathan Sidwell <nathan at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Status|ASSIGNED |SUSPENDED --- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> --- this caused by the as_base creation code copying the field_decl, deferred NSDMI and all. That doesn't affect trunk's behaviour so is harmless. But we should get it right. Fixed on modules 2c6b4bd9ab0 Can push to trunk once stage 1 opens up. PR c++/94476 gcc/cp/ * class.c (layout_class_type): Zap NSDMI of as_base fields. gcc/testsuite/ * g++.dg/modules/nsdmi-2.C: New.