From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4421 invoked by alias); 21 Jun 2010 16:39:18 -0000 Received: (qmail 4228 invoked by uid 48); 21 Jun 2010 16:39:03 -0000 Date: Mon, 21 Jun 2010 16:39:00 -0000 Subject: [Bug fortran/44614] New: [OOP] Wrongly importing a symbol into an interface without IMPORT X-Bugzilla-Reason: CC Message-ID: 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg02072.txt.bz2 Based on a report by bd satish at http://gcc.gnu.org/ml/fortran/2010-06/msg00210.html The following program is invalid as IMPORT is missing, but gfortran still compiles it: Expected: An error such as: Error: line 12: SELF is of undefined derived type CONNECTION or error #6457: This derived type name has not been declared. [CONNECTION] module factory_pattern implicit none type, abstract :: Connection contains procedure(generic_desc), deferred :: description end type Connection abstract interface subroutine generic_desc(self) ! import class(Connection) :: self end subroutine generic_desc end interface end module factory_pattern -- Summary: [OOP] Wrongly importing a symbol into an interface without IMPORT Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: accepts-invalid, diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44614