public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24534]  New: gfortran: regression w/ PUBLIC derived types with private components
@ 2005-10-26  8:07 anlauf at gmx dot de
  2005-10-26 16:59 ` [Bug fortran/24534] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: anlauf at gmx dot de @ 2005-10-26  8:07 UTC (permalink / raw)
  To: gcc-bugs

Hi,

the following valid code snippet recently stopped to compile cleanly:

module gfcbug28

  ! A publicly visible derived type with private components
  type, public :: my_t
     private
     type(offset_t) :: offset
  end type my_t

  ! Everything else is private...
  private

  type offset_t
     integer :: i
  end type offset_t

end module gfcbug28


I get:

 In file gfcbug28.f90:4

  type, public :: my_t
                     1
Error: The component 'offset' is a PRIVATE type and cannot be a component of
'my_t', which is PUBLIC at (1)


This is clearly nonsense.  Although the type "my_t" is PUBLIC,
its components are not.

Cheers,
-ha


-- 
           Summary: gfortran: regression w/ PUBLIC derived types with
                    private components
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-11-06 22:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-26  8:07 [Bug fortran/24534] New: gfortran: regression w/ PUBLIC derived types with private components anlauf at gmx dot de
2005-10-26 16:59 ` [Bug fortran/24534] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-10-29 15:15 ` [Bug fortran/24534] " steven at gcc dot gnu dot org
2005-10-29 15:20 ` [Bug fortran/24534] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-10-30 23:25 ` pinskia at gcc dot gnu dot org
2005-10-31  8:09 ` anlauf at gmx dot de
2005-11-01 19:22 ` tobi at gcc dot gnu dot org
2005-11-05 10:51 ` paulthomas2 at wanadoo dot fr
2005-11-05 11:06 ` pault at gcc dot gnu dot org
2005-11-05 17:23 ` pault at gcc dot gnu dot org
2005-11-06 20:05 ` pault at gcc dot gnu dot org
2005-11-06 22:50 ` pault at gcc dot gnu dot org
2005-11-06 22:51 ` pault at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).