From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23961 invoked by alias); 22 Jan 2006 00:46:45 -0000 Received: (qmail 23935 invoked by uid 48); 22 Jan 2006 00:46:44 -0000 Date: Sun, 22 Jan 2006 00:46:00 -0000 Message-ID: <20060122004644.23934.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/24327] Does not detect duplicate symbol names in contains block In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl 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-01/txt/msg02236.txt.bz2 List-Id: ------- Comment #3 from kargl at gcc dot gnu dot org 2006-01-22 00:46 ------- It looks like one or more of pault's patchs has fixed this problem. kargl[209] gfc4x -c pr24327.f90 In file pr24327.f90:4 function foo () 1 In file pr24327.f90:2 real :: foo 2 Error: Procedure 'foo' at (1) has an explicit interface and must not have attributes declared at (2) Adding external attribute I get kargl[214] gfc4x -c pr24327.f90 In file pr24327.f90:4 function foo () 1 In file pr24327.f90:2 real, external :: foo 2 Error: Procedure 'foo' at (1) has an explicit interface and must not have attri butes declared at (2) In file pr24327.f90:4 function foo () 1 Error: EXTERNAL attribute conflicts with FUNCTION attribute in 'foo' at (1) In file pr24327.f90:5 end function foo 1 Error: Expecting END PROGRAM statement at (1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24327