https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127591

Steve Kargl <kargl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
      Known to work|                            |17.0
      Known to fail|                            |15.2.0

--- Comment #2 from Steve Kargl <kargl at gcc dot gnu.org> ---
For those playing along, with an unedited ch2805.f90 from the zip
file, one gets the expected behavior.  Changing the file such as

% diff -u ch2805.f90.orig ch2805.f90
--- ch2805.f90.orig     2026-09-24 13:33:53.908370000 -0700
+++ ch2805.f90  2026-09-24 13:26:47.103980000 -0700
@@ -1,4 +1,4 @@
-include 'ch2805_shape_module.f90'
+include 'ch2806_shape_module.f90'
 include 'ch2804_circle_module.f90'
 include 'ch2804_rectangle_module.f90'
 include 'ch2805_shape_wrapper_module.f90'

gives

 gfortran15 -o z -g ch2805.f90
troutmask:kargl[268] ./z
  calling display subroutine

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x823e24a92 in ???
#1  0x823e23a5d in ???
#2  0x8218772d2 in ???
#3  0x8240ddee0 in ???
#4  0x8240df643 in ???
#5  0x8240e4173 in ???
#6  0x8240e57d1 in ???
#7  0x40090c in __shape_module_MOD_draw
        at /mnt3/kargl/Downloads/ch28/shape_module_include_code.f90:46
#8  0x4016bd in __display_module_MOD_display
        at /mnt3/kargl/Downloads/ch28/ch2805_display_module.f90:13
#9  0x4018b5 in ch2805
        at /mnt3/kargl/Downloads/ch28/ch2805.f90:26
#10  0x4024ba in main
        at /mnt3/kargl/Downloads/ch28/ch2805.f90:8

Reply via email to