[Bug fortran/107075] ICE in get, at cgraph.h:461
mikael at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 29 09:05:42 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107075
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to anlauf from comment #1)
>
> Uncommenting the 'save' also avoids the ICE, as does adding -fno-automatic .
... as does adding an initializer to A.
That's something I noticed just a few days ago: variables from main program
without initializer don't get (implicitly) the SAVE attribute.
(In reply to Richard Biener from comment #2)
>
> But maybe 'z' shouldn't be of static storage duration ...
No, I think it shouldn't. A should be static, and Z should not.
More information about the Gcc-bugs
mailing list