Empty structure constructors are not handled correctly

pgfortran 17.10 does not correctly handle the following programs.

  type t
  end type

  print*, t()

  type t(n)
    integer, len :: n
  end type

  print*, t(1)()

The compiler reports an ICE but creates an executable for the first. The output of this executable is not correct (there is no output).

The second program is rejected.

We replicated the issue and logged as TPR 25084.


Should no longer be an issue with release 18.7