http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57924
Bug ID: 57924 Summary: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jahns at dkrz dot de Created attachment 30521 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30521&action=edit source file to trigger the warning When compiling a program that generates an array temporary, and the compiler is instructed to 1. generate warnings for array temporaries 2. warnings are elevated to errors 3. array temporary warnings are explicitly set to non-errors compilation still aborts once a corresponding warning is encountered. I've attached a source file + Makefile to demonstrate. I've also tested gfortran 4.6.3. All my tests were done on a Debian system.