This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings
- From: "jahns at dkrz dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Jul 2013 09:56:12 +0000
- Subject: [Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings
- Auto-submitted: auto-generated
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.