[Bug ipa/100994] [12 Regression] wrong code with "-O1 -finline-small-functions -fipa-cp"

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 9 21:28:09 GMT 2021


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

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Perhaps the tree-inline.c change is fine for Ada, but it doesn't seem to be
> safe for C/C++.

You're casting away the const qualifier though, how can this valid C++?


More information about the Gcc-bugs mailing list