- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following code compiles with gfortran but not ifort V15:
module cu
type db_node_struct
real, pointer :: ptr(:) => null()
end type
type db_struct
type (db_node_struct) :: node(15) = db_node_struct()
end type
type aaa
type (db_struct) :: db = db_struct()
end type
end module
The generated error is:
erpsim1:~/linux_lib/test> ifort -c cu.f90
cu.f90(12): error #7367: The data value NULL() can only be assigned to a Fortran POINTER.
type (db_struct) :: db = db_struct()
^
compilation aborted for cu.f90 (code 1)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the report. I directed this to the Fortran Development team.
(Internal tracking id: DPD200377419)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page