Skip to content

Flang rejects valid empty constructor #239

@nncarlson

Description

@nncarlson

The current version of flang (5.0) rejects this valid code

module example
  type :: map
    integer, pointer :: first => null()
  end type
  type :: parameter_list
    type(map) :: params = map() ! this is entirely valid
  end type
end module

with this error

F90/x86-64 Linux Flang - 1.5 2017-05-01: compilation aborted
$ flang -c flang-bug-20170923b.f90 
F90-F-0155-Empty structure constructor() - type map (flang-bug-20170923b.f90: 12)

This issue is related to the ECP ExaAM project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions