[Patch, fortran] PR92976 - [8/9/10 Regression][OOP] ICE in trans_associate_var, at fortran/trans-stmt.c:1963
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sat Feb 29 17:30:00 GMT 2020
I am a tiny bit skeptical that this is a regression but I will check.
However, it has clearly been there from the early days of OOP without
being picked up.
The fix is to ensure that the temporary has the correct type of array spec.
Regtested on x86_64/FC31 - OK for trunk and 8-/9- branches ?
Cheers
Paul
2020-02-29 Paul Thomas <pault@gcc.gnu.org>
PR fortran/92976
* match.c (select_type_set_tmp): If the selector array spec has
explicit bounds, make the temporary's bounds deferred.
2020-02-29 Paul Thomas <pault@gcc.gnu.org>
PR fortran/92976
* gfortran.dg/select_type_48.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 2023 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20200229/febc48be/attachment.bin>
More information about the Fortran
mailing list