This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16404] should reject invalid code with -pedantic -std=f95 ? (x8)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]