- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe someone else already reported on this, but... When compiling the code below, I get an Internal Compiler Error ---I'm not sure if the code below is valid; I first tried with ALLOCATABLE instead of POINTER (with NULL() added for the second component), but there seems to be a restriction for that kind of initialization at the declaration level.
!------------------------------------------------------------------------------
module mod1
implicit none
private
save
type, public :: t1
character(63) :: name
character(255), pointer :: txt(:) => NULL()
end type
end module mod1
module mod2
use mod1
implicit none
private
save
type(t1) :: t = t1('something')
end module mod2
!------------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page