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/35395] Invalid-accepted - public entity with private type should be diagnosed



------- Comment #3 from pault at gcc dot gnu dot org  2008-03-23 09:37 -------
(In reply to comment #1)
> Add keywords
> 

Walter,

This is permitted in F2003 so you have to apply the F95 standard to extract the
message out of gfortran:

[root@localhost svn]# /irun/bin/gfortran -std=f95 p*.f90
pr35395.f90:12.37:

  type(X_t), parameter, public :: abc = X_t (12.34, 56.78)
                                    1
Error: Fortran 2003: PUBLIC parameter 'abc' at (1) of PRIVATE derived type
'x_t'

See 4.5.1.1 of F2003.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35395


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