From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5576 invoked by alias); 7 Dec 2006 10:38:22 -0000 Received: (qmail 5550 invoked by uid 48); 7 Dec 2006 10:38:11 -0000 Date: Thu, 07 Dec 2006 10:38:00 -0000 Subject: [Bug fortran/30107] New: improve diagnostic of RECURSIVE LOGICAL SUBROUTINE X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dfranke at gcc dot gnu dot org" 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: 2006-12/txt/msg00577.txt.bz2 The diagnostic of the code below is rather "generic". A more verbose message would be preferable. Without RECURSIVE, gfortran gives "Error: Syntax error in data declaration". $> cat foo.f90 RECURSIVE LOGICAL SUBROUTINE foo() END SUBROUTINE $> gfortran-svn -c -Wall -g foo.f90 foo.f90:1: RECURSIVE LOGICAL SUBROUTINE foo() 1 Error: Unclassifiable statement at (1) $> gfortran-svn -v gcc version 4.3.0 20061206 (experimental) -- Summary: improve diagnostic of RECURSIVE LOGICAL SUBROUTINE Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dfranke at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30107