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

--- Comment #11 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
$ gfc -g pdt_48.f03 
jerry@quasar:~/dev/test/tryit$ gdb ./a.out
GNU gdb (Fedora Linux) 16.3-1.fc42
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./a.out...
(gdb) r
Starting program: /home/jerry/dev/test/tryit/a.out 

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc5000
[Thread debugging using libthread_db enabled]                                   
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00000000004005f2 in pdt_m::add (a=..., b=...) at pdt_48.f03:26
26          c%foo(1:a%k)=a%foo
(gdb) bt
#0  0x00000000004005f2 in pdt_m::add (a=..., b=...) at pdt_48.f03:26
#1  0x0000000000400977 in test_pdt () at pdt_48.f03:44
(gdb)

Reply via email to