[Patch, Fortran, OOP] PR 47745: Segfault with CLASS(*) and derived type dummy arguments
Janus Weil
janus@gcc.gnu.org
Wed Feb 16 15:32:00 GMT 2011
Hi Dominique,
> The patch works as expected without regression. It even fixed the ICE for pr46328 which
> is replaced by the following (probably wrong) error:
>
> pr46328.f90:22.6:
>
> u = (u)*2.
> 1
> Error: Operands of binary numeric operator '*' at (1) are CLASS(field)/REAL(4)
well, yeah. The error is incorrect here, but I guess it's no worse
than the ICE we had before ;)
In general such polymorphic operator expressions will probably have to
wait until 4.7. Otherwise all working cases are handled well by the
patch (as the testsuite shows).
> PS. This is not a review;-)
Anyway, thanks for whatever it was :)
Cheers,
Janus
More information about the Fortran
mailing list