[Bug c++/101695] calling incorrect destructor of same-name class in anonymous namespaces in separate translation units

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 6 09:51:59 GMT 2021


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #51225|0                           |1
        is obsolete|                            |

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 51268
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51268&action=edit
Tar file with reproducer

This is a slightly reduced version of the repro, containing only the source
files. It can be built using g++ *.cpp with any version from 4.7.0 onwards to
demonstrate the bug.


More information about the Gcc-bugs mailing list