--- Comment #2 from janus at gcc dot gnu dot org 2010-01-17 22:42 ---
Another related example. This one is being accepted, although it is invalid.
module mo
implicit none
type,private :: tt
integer :: i = 1
end type
type, extends(tt) :: ttt
real :: x = 2.0
end type
end
--- Comment #3 from janus at gcc dot gnu dot org 2010-01-17 23:34 ---
Here is a simple patch for setting the parent component accessibility:
Index: gcc/fortran/decl.c
===
--- gcc/fortran/decl.c (revision 155994)
+++ gcc/fo
--- Comment #4 from janus at gcc dot gnu dot org 2010-01-17 23:46 ---
In addition to the parent component accessibility issue, there is also
something wrong with the error message being thrown in comment #0 and #1.
The check throwing this error resides in 'gfc_find_component', and was m
--- Comment #5 from janus at gcc dot gnu dot org 2010-01-18 13:46 ---
(In reply to comment #3)
> Here is a simple patch for setting the parent component accessibility:
> [...]
> This is probably not enough, since the access. specification of the parent
> type
> may come after the daught
--- Comment #6 from burnus at gcc dot gnu dot org 2010-01-18 14:36 ---
(In reply to comment #5)
> It sets the accessibility at resolution time and makes the following variant
> of comment #2 work:
That variant works for me already with the trunk, i.e. it is not rejected which
is (for m
--- Comment #7 from burnus at gcc dot gnu dot org 2010-01-18 14:39 ---
(In reply to comment #6)
> > It sets the accessibility at resolution time and makes the following
> > variant
> > of comment #2 work:
>
> That variant works for me already with the trunk, i.e. it is not rejected
>
--- Comment #8 from janus at gcc dot gnu dot org 2010-01-19 13:20 ---
Patch posted at:
http://gcc.gnu.org/ml/fortran/2010-01/msg00101.html
--
janus at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #9 from janus at gcc dot gnu dot org 2010-01-19 13:45 ---
Subject: Bug 42545
Author: janus
Date: Tue Jan 19 13:45:07 2010
New Revision: 156040
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156040
Log:
gcc/fortran/
2010-01-19 Janus Weil
PR fortran/42545
--- Comment #10 from janus at gcc dot gnu dot org 2010-01-19 14:00 ---
Fixed with r156040. Closing.
--
janus at gcc dot gnu dot org changed:
What|Removed |Added
--
hjl dot tools at gmail dot com changed:
What|Removed |Added
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42545
10 matches
Mail list logo