[Bug fortran/57924] -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Thu Mar 23 21:41:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57924
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
AFAICT this seems to be fixed since at least for 5.4.0:
[Book15] f90/bug% gfortran-fsf-5 pr57924.f90 -Warray-temporaries -Werror
pr57924.f90:12:13:
CALL foo(q)
1
Error: Creating array temporary at (1) [-Werror=array-temporaries]
f951: all warnings being treated as errors
[Book15] f90/bug% gfortran-fsf-5 pr57924.f90 -Warray-temporaries -Werror
-Wno-error=array-temporaries
pr57924.f90:12:13:
CALL foo(q)
1
Warning: Creating array temporary at (1) [-Warray-temporaries]
Am I correct to understand that it is the expected behavior?
More information about the Gcc-bugs
mailing list