public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Chained modules in a testcase
@ 2023-01-19 20:36 Harald Anlauf
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Anlauf @ 2023-01-19 20:36 UTC (permalink / raw)
  To: Paul, fortran

Hi Paul,

I got a list of potential candidates by

% grep 'dg-additional-sources .*f90 ' gcc/testsuite/gfortran.dg/ -r

and ran the first one:

% make check-fortran RUNTESTFLAGS='dg.exp=altreturn_9*.*'

On first sight this looked fine.

Cheers,
Harald


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Chained modules in a testcase
@ 2023-01-19 19:45 Paul Richard Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Richard Thomas @ 2023-01-19 19:45 UTC (permalink / raw)
  To: fortran; +Cc: abensonca

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-19 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 20:36 Chained modules in a testcase Harald Anlauf
  -- strict thread matches above, loose matches on Subject: below --
2023-01-19 19:45 Paul Richard Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).