From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21453 invoked by alias); 22 Nov 2011 16:11:30 -0000 Received: (qmail 21337 invoked by uid 22791); 22 Nov 2011 16:11:23 -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; Tue, 22 Nov 2011 16:11:10 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51268] [Regression] A subroutine can not know anymore its own interface Date: Tue, 22 Nov 2011 16:42: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC 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: 2011-11/txt/msg02223.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51268 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #1 from Tobias Burnus 2011-11-22 16:09:19 UTC --- Well, that one now gets a diagnostic and didn't get one before is a change, but the question is whether it is a progression or a regression. NAG prints: Error: line 15: USE MYINTERFACES in program-unit MYSUB imports symbol MYSUB g95 prints: Module 'myinterfaces' at (1) redefines the current program unit 'mysub' pathf95 prints: "MYSUB" is the name of this program unit, therefore it must not be use associated from module "MYINTERFACES". openf95 prints: "MYSUB" is the name of this program unit, therefore it must not be use associated from module "MYINTERFACES". crayftn prints: "MYSUB" is the name of this program unit, therefore it must not be use associated from module "MYINTERFACES". While ifort prints (only with -stand f95/f03): warning #7925: An interface-block in a subprogram shall not contain an interface-body for a procedure defined by that subprogram. [MYSUB] And "pgf90 -Minfo=all" and "sunf95 -w0" simply silently accept the program. I think the program is indeed invalid - but if needed, I can check the standard. One could consider allowing it with a warning (as ifort does), but I am not sure one should.