[Bug c/111405] Problem with incorrect optimizion for "constexpr" function with possible overflow

xry111 at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 14 12:54:20 GMT 2023


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

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xry111 at gcc dot gnu.org

--- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
I'm really amazed that in 2023 there are still textbooks teaching everyone to
invoke undefined behavior, even such a famous one.

And how's this related to constexpr?!


More information about the Gcc-bugs mailing list