[Bug fortran/31472] gfortran does not detect the illegal use of an access specification in a program, subroutine, or function
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 5 13:13:00 GMT 2007
------- Comment #2 from burnus at gcc dot gnu dot org 2007-04-05 14:13 -------
The patch is wrong since the PRIVATE/PUBLIC statement is also allowed for type:
module foo
type t
private
integer, public :: foo
end type t
end module foo
Actually, currently gfortran also invalidly rejects the "integer, public ::
foo". See NOTE 4.41 in Section 4.5.3.6 of the Fortran 2003 standard for an
example.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31472
More information about the Gcc-bugs
mailing list