// PR c++/120499 // { dg-additional-options "-fmodules -fdump-lang-module-blocks" } // { dg-module-cmi A } export module A; struct allocator { ~allocator() {} }; export template struct vector { struct _Vector_impl : public allocator {}; _Vector_impl _M_impl; vector() = default; }; template struct regex_token_iterator { vector _M_subs; }; template struct regex_token_iterator; // No definition of _Vector_impl::~_Vector_impl here (not synthesized) // { dg-final { scan-lang-dump-not {'::vector@A:1::_Vector_impl@A:1::__dt '} module } }