From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25988 invoked by alias); 14 Aug 2007 15:48:44 -0000 Received: (qmail 24760 invoked by uid 48); 14 Aug 2007 15:48:31 -0000 Date: Tue, 14 Aug 2007 15:48:00 -0000 Message-ID: <20070814154831.24759.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/22571] Reject derived types for dummy arguments declared in the subroutine unless they are SEQUENCE 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00921.txt.bz2 ------- Comment #7 from burnus at gcc dot gnu dot org 2007-08-14 15:48 ------- Note: Instead of having the SEQUENCE property, the BIND(C) attribute ("type, bind(c) :: t") suffices as well. "Two data entities have the same type if they are declared with reference to the same derived-type definition. The definition may be accessed from a module or from a host scoping unit. Data entities indifferent scoping units also have the same type if they are declared with reference to different derived-type definitions that specify the same type name, all have the SEQUENCE property or all have the BIND attribute, have no components with PRIVATE accessibility, and have type parameters and components that agree in order, name, and attributes. Otherwise, they are of different derived types. A data entity declared using a type with the SEQUENCE property or with the BIND attribute is not of the same type as an entity of a type declared to be PRIVATE or that has any components that are PRIVATE." -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22571