From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18419 invoked by alias); 11 Jan 2010 01:56:43 -0000 Received: (qmail 16250 invoked by uid 48); 11 Jan 2010 01:56:29 -0000 Date: Mon, 11 Jan 2010 01:56:00 -0000 Message-ID: <20100111015629.16249.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/42684] ICE when interface operator(xx) available through host and use assoc in module procedure In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ian_harvey at bigpond dot com" 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-01/txt/msg01189.txt.bz2 ------- Comment #2 from ian_harvey at bigpond dot com 2010-01-11 01:56 ------- Some primitive debugging: As directed by parse_contained, parsing and subsequent processing of the use statement in other_proc (parse_progunit) occurs prior to parsing of the add_b function and hence determination of the characteristics of the add_b symbol. This use statement processing includes ambiguous interface checking (gfc_compare_interfaces), which doesn't deal with the case when the symbol associated with argument s2 is of unknown type (BT_UNKNOWN) and no name is provided for type resolution. A source code workaround is to move the USE statement to the specification part of the module or to reorder the module procedures such that add_b occurs before other_proc. The internal error is also generated if the module procedure name given in the INTERFACE OPERATOR block doesn't exist as a module procedure. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42684