This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16404] should reject invalid code with -pedantic -std=f95 ? (x8)
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2004 13:49:34 -0000
- Subject: [Bug fortran/16404] should reject invalid code with -pedantic -std=f95 ? (x8)
- References: <20040707093303.16404.jv244@cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2004-07-11 13:49 -------
I can't find anything in the standard which renders test 6 illegal. I think the
code is equivalent to:
! test 6
MODULE TEST
TYPE, PRIVATE :: info_type
private
INTEGER :: value
END TYPE info_type
TYPE, PUBLIC :: all_type
private
TYPE(info_type) :: info
END TYPE
END MODULE
which is legal AFAICT, and accepted by gfortran.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16404