[Bug c++/104850] Instantiating a destructor for a template class too early, before the calling destructor is seen - rejects valid code

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 10 04:41:52 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104850

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Interesting if I put the definition of the class A::B at the end of the file,
the code works ....

I wonder if this is because of some ABI issue where A::A as a base class is
created ....


More information about the Gcc-bugs mailing list