Bug 49475 - [OOP][debugging] Add DWARF info for Fortran's OOP features (extension, member functions)
Summary: [OOP][debugging] Add DWARF info for Fortran's OOP features (extension, member...
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.7.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Keywords: wrong-debug
: 71454 (view as bug list)
Depends on:
Blocks: 24546
  Show dependency treegraph
Reported: 2011-06-20 16:30 UTC by Tobias Burnus
Modified: 2016-06-08 12:12 UTC (History)
3 users (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2015-10-29 00:00:00


Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2011-06-20 16:30:07 UTC
We should consider generating DWARF information for Fortran OOP features:

type t
  integer :: a
end type t

type, EXTENDS(t) :: t2
  integer :: b
  procedure :: member_proc => local_proc
end type t2

type (t2) :: x

In this example, x%a and x%t2%a access the component of the parent type.

"member_proc" is a member function, which can be accessed as x%member_proc(); the actual function being called depends on the dynamic type and is determined via the vtable.

DWARF4 does not really state what should be used in case of Fortran. At http://www.dwarfstd.org/doc/DWARF4.pdf one finds:
- "5.5.3 Derived or Extended Structs, Classes and Interfaces"
- "5.5.7 Member Function Entries"
Comment 1 Tobias Burnus 2011-07-07 13:33:18 UTC
See thread starting at http://gcc.gnu.org/ml/gcc/2011-06/threads.html#00342
Comment 2 Dominique d'Humieres 2015-10-29 13:46:05 UTC
Any progress?
Comment 3 Bernhard Heckel 2016-06-08 12:12:09 UTC
*** Bug 71454 has been marked as a duplicate of this bug. ***