public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67460] New: [5/6 Regression] Spurious: f951: all warnings being treated as errors
@ 2015-09-05 10:33 Joost.VandeVondele at mat dot ethz.ch
  2015-09-05 11:05 ` [Bug fortran/67460] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2015-09-05 10:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67460

            Bug ID: 67460
           Summary: [5/6 Regression] Spurious: f951: all warnings being
                    treated as errors
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Joost.VandeVondele at mat dot ethz.ch
  Target Milestone: ---

The testcase below leads to spurious output at compile time, even though no
warning (or error) is emitted. This started with the 5. release, 4.9 is fine.
In a large build this can trigger many times, but it does not always trigger.

> gfortran  -c -std=f2003 -Werror bug.f90
f951: all warnings being treated as errors

> cat bug.f90
MODULE btree_i8_k_sp2d_v
  TYPE btree_node
     INTEGER id
     TYPE(btree_node_p), DIMENSION(:), POINTER :: subtrees
     TYPE(btree_node), POINTER :: parent
  END TYPE btree_node
  TYPE btree_node_p
     TYPE(btree_node), POINTER :: node
  END TYPE btree_node_p
CONTAINS
  RECURSIVE SUBROUTINE btree_verify_node (tree, node, level, nids, lastv,&
               count, num_nodes, max_leaf_level, min_leaf_level, printing)
    TYPE(btree_node), INTENT(IN)             :: node
    INTEGER                                  :: branch
    IF (ASSOCIATED (node%subtrees(branch)%node)) THEN
       IF (node%subtrees(branch)%node%parent%id .NE. node%id) THEN
          WRITE(*,*)'foo'
       ENDIF
    ENDIF
  END SUBROUTINE btree_verify_node
END MODULE btree_i8_k_sp2d_v


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

end of thread, other threads:[~2015-10-20 12:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-05 10:33 [Bug fortran/67460] New: [5/6 Regression] Spurious: f951: all warnings being treated as errors Joost.VandeVondele at mat dot ethz.ch
2015-09-05 11:05 ` [Bug fortran/67460] " dominiq at lps dot ens.fr
2015-09-05 16:54 ` manu at gcc dot gnu.org
2015-09-05 18:58 ` Joost.VandeVondele at mat dot ethz.ch
2015-09-13 23:51 ` manu at gcc dot gnu.org
2015-09-14 19:28 ` manu at gcc dot gnu.org
2015-10-20 11:24 ` [Bug fortran/67460] [5 " pault at gcc dot gnu.org
2015-10-20 12:34 ` manu 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).