Open difference-scheme opened 4 years ago
f18 also does not seem to catch this.
I was wrong here since i was using an old build. f18 does catch this. abstra.f90:6:4: error: ABSTRACT derived type may not be used here type(basic) :: obj ^^^^^^^^^^^^^^^^^^ ./build/tools/f18/bin/f18: semantic errors in abstra.f90
See my comments for #874. This bug only occurs with empty abstract derived types. If the abstract type is non-empty, Flang issues an error message.
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.