This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, OOP] PR 47745: Segfault with CLASS(*) and derived type dummy arguments
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: fortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 16 Feb 2011 16:32:06 +0100
- Subject: Re: [Patch, Fortran, OOP] PR 47745: Segfault with CLASS(*) and derived type dummy arguments
- References: <20110216130150.AFAD43BE18@mailhost.lps.ens.fr>
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