From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14509 invoked by alias); 8 Feb 2012 10:39:02 -0000 Received: (qmail 14494 invoked by uid 22791); 8 Feb 2012 10:39:02 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Feb 2012 10:38:49 +0000 From: "bardeau at iram dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51991] Wrong error message with variables named "SAVE*" Date: Wed, 08 Feb 2012 10:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: bardeau at iram dot fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-02/txt/msg00828.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51991 --- Comment #10 from Sebastien Bardeau 2012-02-08 10:38:42 UTC --- I checked the gfortran trunk revision 183991 and the "bug" does not seem to be fixed. I can also add that the DATA*-named variables give also erroneous messages. gfortran -v: Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/home/bardeau/Softs/gcc-4.7.0-20120208/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk-source/gcc/configure --enable-languages=c,c++,fortran --enable-checking=release --disable-bootstrap --disable-libmudflap --enable-libgomp --enable-lto --enable-gold --with-plugin-ld=/usr/bin/gold --prefix=/usr/local/gcc-trunk Thread model: posix gcc version 4.7.0 20120208 (experimental) [trunk revision 183991] (GCC) code: subroutine sav integer :: save1 save1 = something wrong end subroutine sav ! subroutine dat integer :: data1 data1 = something wrong end subroutine dat messages: gfortran-error4.f90:3.6: save1 = something wrong 1 Error: Syntax error in SAVE statement at (1) gfortran-error4.f90:8.6: data1 = something wrong 1 Error: Syntax error in DATA statement at (1)