From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19952 invoked by alias); 8 Nov 2006 22:36:00 -0000 Received: (qmail 19924 invoked by uid 48); 8 Nov 2006 22:35:52 -0000 Date: Wed, 08 Nov 2006 22:36:00 -0000 Message-ID: <20061108223552.19923.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/29755] [4.2 only] ICE on same name in subroutine and program In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00700.txt.bz2 List-Id: ------- Comment #3 from burnus at gcc dot gnu dot org 2006-11-08 22:35 ------- Just for completeness, the ICE also occurs with 4.1 ! { dg-do compile } ! { dg-shouldfail "same name of program and subroutine" } ! Tests whether ICE occurs when using the same name ! for a subroutine as for the program ! PR fortran/29755 program foo type myType integer :: i end type myType interface subroutine foo(x)! { dg-error "PROGRAM attribute conflicts with PROCEDURE" } type(myType) :: i! { dg-error "Unexpected data declaration statement" } end subroutine foo ! { dg-error "Expecting END INTERFACE statement" } end interface call foo() ! { dg-error "PROGRAM attribute conflicts with PROCEDURE" } end program foo -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29755