From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24052 invoked by alias); 26 Jul 2009 21:23:15 -0000 Received: (qmail 24011 invoked by uid 48); 26 Jul 2009 21:23:03 -0000 Date: Sun, 26 Jul 2009 21:23:00 -0000 Message-ID: <20090726212303.24010.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40011] Problems with -fwhole-file In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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: 2009-07/txt/msg02128.txt.bz2 ------- Comment #41 from rguenth at gcc dot gnu dot org 2009-07-26 21:23 ------- 3323 gcc_assert (TYPE_CONTEXT (decl) == NULL_TREE 3324 || TYPE_CONTEXT (decl) == sym->ns->proc_name->backend_decl); 3325 gcc_assert (DECL_CONTEXT (TYPE_STUB_DECL (decl)) == NULL_TREE 3326 || DECL_CONTEXT (TYPE_STUB_DECL (decl)) 3327 == sym->ns->proc_name->backend_decl); if the second assert isn't bogus then both types (the one in the replica_type module and the imported one) have to have separate type-stub-decls (thus two debug information entries). Personally I think it is quite reasonable to use the replica_type modules debug info for the USE imported one, thus simply remove the 2nd assert. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40011