https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122644

--- Comment #3 from Maksim Kadatskii <maxkadat at gmail dot com> ---
(In reply to kargls from comment #2)
> The code compiles and executes with GNU Fortran (GCC) 16.0.0 20251108
> (experimental)
> 
> % gfcx -o z a.f90
> % ./z
>  Test completed successfully!
> 
> It currently fails with GNU Fortran (GCC) 15.2.1 20251110
> 
> % gfc15 -o z -fmax-errors=1 a.f90
> a.f90:32:26:
> 
>    32 |     CLASS(generic_type(*)), INTENT(INOUT) :: self
>       |                          1
> Error: 'abstract_base' at (1) is of the ABSTRACT type 'abstract_base'
> compilation terminated due to -fmax-errors=1.
> 
> A large number of bugs have recently been fixed with parameterized
> derived types in the main branch of development. It seems that the
> fix for this bug has yet to be back ported to 15.x branch.

Thanks. In that case, I will wait for the new release (or at least Stage 3 of
the 16.x branch).

Reply via email to