From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 42E463858C52 for ; Thu, 19 Jan 2023 19:45:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42E463858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x42e.google.com with SMTP id 127so2343045pfe.4 for ; Thu, 19 Jan 2023 11:45:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=xZ5nf1AKo/UkVNvASKlq40kCRXa+ZXRmMNiP6Vm3QBQ=; b=PDpBxKwRYRKuXK63hEIMj/w23EpPmhRhPAJHPx51L0owDyLgJhy8DOJHkiiPFp1n9c UMzQDrU5w0xmhpDfxOs/xoWiGDrX1Ykpd9seS06BbME1CT0SmKWXKAcJYtERYUCFgfPh UM+qR8OROBheObR5ewVUqoaAW+KTKeyhKIrWR8YS0iirOpaDy28DyEy4eH5mzgRsljsK SgsNJu33Jrh0cKr+CcpNaYVfxcBTrOGT3wk0bL+02oi5uCSerQJXNDt4QlKdNGhQ3sYG R4PEbRaqIn9YwWVFq+3hlO1GulwfsI2DqWDvFbN+vS0GpVAcly3JmgAKgfGVRLNVd/Ye t9XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xZ5nf1AKo/UkVNvASKlq40kCRXa+ZXRmMNiP6Vm3QBQ=; b=QZonm3P3afSEJAZEcuTOIwq6bgDvANxBFYI2jlmPUpdYK0krgJXeMjaV70WkkPdoZ1 QEyhroEybyoyRF0dZA9x1WZWYdAK8g+8pSfgH+THE5cTlp9wdR0LQvrOGSqhkWAqY9QK zlvZjHTs3hleuxs2CkSGFCtGM6rez9emWJWuafIZbZrvuLITRvE9xP2aV0aPNUBak3pp gNFCDbLfCFj5JAucd2bJgk/luMNgRGcydvoFazeH5zv/YPl9l/jnuRwuLfCPqC8WP9sh nyGDvfEIWXViZbziTt+i1jUNJ2EkuJnObwtQusJ2GvZyq+ePVXzBgFwC2lz8zAa0eeHc MdEQ== X-Gm-Message-State: AFqh2kq8ctaIvpOAzLif2Sj9HVG9dzrN58uQYY0o4j/9MGN+csr27FAG 2q5nGcb9k7v3IpEsNrN93VRfbcQ/q2XZH8Qrmv5QmOc7bnY= X-Google-Smtp-Source: AMrXdXvnDgEf6CtHa/bxnoo9qpqbikDqpn1FE1tlp9FmsVZ8S9DFMDwuSrJLg8Qe0QXA5syZKjjHjCltws8Nee5sJ+8= X-Received: by 2002:a05:6a00:4088:b0:580:d188:f51c with SMTP id bw8-20020a056a00408800b00580d188f51cmr1142471pfb.28.1674157551966; Thu, 19 Jan 2023 11:45:51 -0800 (PST) MIME-Version: 1.0 From: Paul Richard Thomas Date: Thu, 19 Jan 2023 19:45:40 +0000 Message-ID: Subject: Chained modules in a testcase To: "fortran@gcc.gnu.org" Cc: abensonca@gmail.com Content-Type: multipart/alternative; boundary="0000000000002edf5405f2a32e6a" X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000002edf5405f2a32e6a Content-Type: text/plain; charset="UTF-8" Hi, Andrew Benson found a rather horrible bug in my finalization patch that involved two separate module files and another containing both a module and the main program. They must be compiled separately for the bug to appear. This bug arises in finalization because some derived type function results wind up with a derived type that has no proc_name for its namespace, which causes gfc_get_derived_vtab to segfault. file 1: iso.f90 which contains a module only. file 2: dt.90 which uses module iso within one of the module contained functions file 3: ov.f90 which contains another module using iso and dt, again within a module constrained function. It also contains the main program. How do I deal with this in the testsuite? I have tried all manner of combinations of dg-compile-aux-modules and dg-additional-sources to no avail. Cheers Paul --0000000000002edf5405f2a32e6a--