[Bug c/112826] gcc rejects the valid code and reports undefined reference

arsen at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 2 15:43:19 GMT 2023


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

Arsen Arsenović <arsen at gcc dot gnu.org> changed:

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

--- Comment #1 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
I can't assert the validity of this code, but -O1 does elide the function as
expected.


More information about the Gcc-bugs mailing list