From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19883 invoked by alias); 13 Mar 2007 14:12:34 -0000 Received: (qmail 19849 invoked by uid 48); 13 Mar 2007 14:12:24 -0000 Date: Tue, 13 Mar 2007 14:12:00 -0000 Subject: [Bug fortran/31162] New: missing warning for real do-loops with implicit typed variables X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manfred99 at gmx dot ch" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01178.txt.bz2 real r do r=1.0,2.0 print*,r enddo end gives legacy.f:2.10: do r=1.0,2.0 1 Warning: Obsolete: REAL DO loop iterator at (1) which is ok, however do r=1.0,2.0 print*,r enddo end compiles without warning! the same for implicit real(a-z) do r=1.0,2.0 print*,r enddo end Additionally: It seems this warning is tied to -std=legacy, perhaps it would make more sense to tie it to -Wsurprising as it was the case for g77. -- Summary: missing warning for real do-loops with implicit typed variables Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: manfred99 at gmx dot ch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31162