------- 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