This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41629] New: [OOP] gimplification error on valid code
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2009 07:51:52 -0000
- Subject: [Bug fortran/41629] New: [OOP] gimplification error on valid code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code results in a gimplication error:
type t1
integer :: comp
end type
type(t1), target :: a
class(t1) :: x
pointer :: x
a%comp = 3
x => a
print *,x%comp
end
The problem here is that 'encapsulate_class_symbol' is called too early (i.e.
before the symbol has acquired the pointer attribute). Solution:
encapsulate_class_symbol must be called at resolution stage.
--
Summary: [OOP] gimplification error on valid code
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41629