[Patch, Fortran] PR 41719: [OOP] invalid: Intrinsic assignment involving polymorphic variables
Janus Weil
janus@gcc.gnu.org
Fri Oct 16 20:58:00 GMT 2009
Hi all,
here is a small patch which fixes this PR (rather obvious). It was
successfully regtested on x86_64-unknown-linux-gnu.
As suggested by Tobias in comment #6, I'm ignoring the F08 std on this
matter for now, and just stick to F03.
Ok for trunk?
Cheers,
Janus
2009-10-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/41719
* resolve.c (resolve_ordinary_assign): Reject intrinsic assignments
to polymorphic variables.
2009-10-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/41719
* gfortran.dg/class_5.f03: New test case.
* gfortran.dg/typebound_operator_2.f03: Fixing invalid test case.
* gfortran.dg/typebound_operator_4.f03: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr41719.diff
Type: text/x-diff
Size: 1772 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091016/d87be9c4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_5.f03
Type: application/octet-stream
Size: 473 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091016/d87be9c4/attachment.obj>
More information about the Gcc-patches
mailing list