flang icon indicating copy to clipboard operation
flang copied to clipboard

Flang admits instantiation of abstract derived types

Open difference-scheme opened this issue 5 years ago • 3 comments
trafficstars

My understanding of the Fortran standard is that the following code sample is invalid, and should thus be rejected by standard-conforming compilers. It isn't by flang.

program test

   type, abstract :: basic      
   end type basic

   type(basic) :: obj
   
end program test

difference-scheme avatar Feb 20 '20 15:02 difference-scheme