This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35395] Invalid-accepted - public entity with private type should be diagnosed
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2008 09:37:43 -0000
- Subject: [Bug fortran/35395] Invalid-accepted - public entity with private type should be diagnosed
- References: <bug-35395-15045@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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