[Bug fortran/93918] Segfault with -Ofast when calling a routine with an array argument array(:)%component

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 25 09:55:00 GMT 2020


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
As documented, -fstack-arrays is enabled for -Ofast.


https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Optimize-Options.html#index-Ofast
:
Disregard strict standards compliance. -Ofast enables all -O3 optimizations. It
also enables optimizations that are not valid for all standard-compliant
programs. It turns on -ffast-math and the Fortran-specific -fstack-arrays,
unless -fmax-stack-var-size is specified, and -fno-protect-parens.


More information about the Gcc-bugs mailing list