[Bug c++/94951] [8/9 Regression] dereferencing type-punned pointer will break strict-aliasing rules when using super class for a template type

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 7 13:36:28 GMT 2020


Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
            Summary|[8/9/10/11 Regression]      |[8/9 Regression]
                   |dereferencing type-punned   |dereferencing type-punned
                   |pointer will break          |pointer will break
                   |strict-aliasing rules when  |strict-aliasing rules when
                   |using super class for a     |using super class for a
                   |template type               |template type

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 10.2+ and 11+ so far.

More information about the Gcc-bugs mailing list