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

[EMAIL PROTECTED] 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

Reply via email to