public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings
@ 2013-07-18  9:58 jahns at dkrz dot de
  2013-07-18  9:59 ` [Bug fortran/57924] " jahns at dkrz dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jahns at dkrz dot de @ 2013-07-18  9:58 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/57924] -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings
  2013-07-18  9:58 [Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings jahns at dkrz dot de
@ 2013-07-18  9:59 ` jahns at dkrz dot de
  2013-08-13 14:54 ` dominiq at lps dot ens.fr
  2013-08-18 20:18 ` burnus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jahns at dkrz dot de @ 2013-07-18  9:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57924

--- Comment #1 from Thomas Jahns <jahns at dkrz dot de> ---
Created attachment 30522
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30522&action=edit
Makefile giving flags

Add Makefile missing from original report.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/57924] -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings
  2013-07-18  9:58 [Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings jahns at dkrz dot de
  2013-07-18  9:59 ` [Bug fortran/57924] " jahns at dkrz dot de
@ 2013-08-13 14:54 ` dominiq at lps dot ens.fr
  2013-08-18 20:18 ` burnus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-08-13 14:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57924

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-08-13
     Ever confirmed|0                           |1

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/57924] -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings
  2013-07-18  9:58 [Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings jahns at dkrz dot de
  2013-07-18  9:59 ` [Bug fortran/57924] " jahns at dkrz dot de
  2013-08-13 14:54 ` dominiq at lps dot ens.fr
@ 2013-08-18 20:18 ` burnus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-08-18 20:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57924

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
My impression is that -Werror= is not properly supported by gfortran - only
-Werror by itself. (See also PR44054.)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-18 20:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-18  9:58 [Bug fortran/57924] New: -Werror -Warray-temporaries -Wno-error=array-temporaries fails on array temporary warnings jahns at dkrz dot de
2013-07-18  9:59 ` [Bug fortran/57924] " jahns at dkrz dot de
2013-08-13 14:54 ` dominiq at lps dot ens.fr
2013-08-18 20:18 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).