[Bug fortran/109076] class extending abstract type with deferred procedures, with another unrelated procedure interface, crashes on valid code
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 10 04:15:05 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109076
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu.org
--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
In the summary statement you are saying crashes. Not sure what you mean. With
gfortran latest truck, aka 13, I get the following:
$ gfc pr109076.f90
pr109076.f90:13:15:
13 | procedure :: expand => i_expand
| 1
Error: Argument mismatch for the overriding procedure ‘expand’ at (1): Shape
mismatch in argument 'array'
pr109076.f90:11:57:
11 | type, public, extends(parallel_class) :: interpolator
| 1
Error: Derived-type ‘interpolator’ declared at (1) must be ABSTRACT because
‘expand’ is DEFERRED and not overridden
More information about the Gcc-bugs
mailing list