This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]