This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32876] Wrongly accepts private items in public NAMELISTs
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2007 18:09:35 -0000
- Subject: [Bug fortran/32876] Wrongly accepts private items in public NAMELISTs
- References: <bug-32876-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2007-07-25 18:09 -------
> I think that, by extension, components with private components must be illegal
> too.
Which means checking over several levels. For the following program, g95 gives
an error. (NAG f95, ifort don't.)
> I'll have a look.
Thanks, Daniel.
module x
type tp3
private
integer :: i
end type tp3
type tp2
type(tp3) :: t
end type tp2
type tp1
integer :: i
type(tp2) :: t
end type tp1
type(tp1) :: t1
integer :: j
namelist /a/ t1,j
end module x
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32876