[Bug fortran/64674] [OOP] ICE in ASSOCIATE with class array
vehre at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 23 09:07:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64674
--- Comment #5 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Tue Jun 23 09:07:22 2015
New Revision: 224827
URL: https://gcc.gnu.org/viewcvs?rev=224827&root=gcc&view=rev
Log:
gcc/fortran/ChangeLog:
2015-06-23 Andre Vehreschild <vehre@gmx.de>
PR fortran/64674
* parse.c (parse_associate): Figure the rank and as of a
class array in an associate early.
* primary.c (gfc_match_varspec): Prevent setting the
dimension attribute on the sym for classes.
* resolve.c (resolve_variable): Correct the component
ref's type for associated variables. Add a full array ref
when class array's are associated.
(resolve_assoc_var): Correct the type of the symbol,
when in the associate the expression's rank becomes scalar.
* trans-expr.c (gfc_conv_variable): Indirect ref needed for
allocatable associated objects.
gcc/testsuite/ChangeLog:
2015-06-23 Andre Vehreschild <vehre@gmx.de>
PR fortran/64674
* gfortran.dg/associate_18.f08: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/associate_18.f08
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/parse.c
trunk/gcc/fortran/primary.c
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list