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?