Structure constructor with allocatable component rejected

The 18.4 compiler rejects the valid structure constructor expression in this example:

type foo
  class(*), allocatable :: val
end type
type(foo) :: x
x = foo(42)
end



$ pgfortran pgi-constructor-1.f90
PGF90-F-0155-No default initialization in structure constructor- member val$td (pgi-constructor-1.f90: 5)
PGF90/x86-64 Linux 18.4-0: compilation aborted

Hi NeilC,

I was able to reproduce this issue here and have created TPR#25693 and sent to engineering for further investigation.

Thanks!
Mat