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...
Status: UNCONFIRMED
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
URL:
Keywords: wrong-debug
Depends on:
Blocks:
 
Reported: 2011-06-20 16:30 UTC by Tobias Burnus
Modified: 2012-12-11 19:36 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

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
contains
  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