[Bug fortran/82121] [7/8 Regression] Unclassifiable statement during compilation when assigning to a Character array in a derived type contained in a ASSOCIATE statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82121 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Paul Thomas --- Fixed on trunk and 7-branch. Thanks for the report. Paul
[Bug fortran/82121] [7/8 Regression] Unclassifiable statement during compilation when assigning to a Character array in a derived type contained in a ASSOCIATE statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82121 --- Comment #3 from Paul Thomas --- Author: pault Date: Mon Oct 16 19:44:04 2017 New Revision: 253794 URL: https://gcc.gnu.org/viewcvs?rev=253794=gcc=rev Log: 2017-10-16 Paul ThomasPR fortran/52832 * match.c (gfc_match_associate): Before failing the association try again, allowing a proc pointer selector. PR fortran/80120 PR fortran/81903 PR fortran/82121 * primary.c (gfc_match_varspec): Introduce 'tgt_expr', which points to the associate selector, if any. Go through selector references, after resolution for variables, to catch any full or section array references. If a class associate name does not have the same declared type as the selector, resolve the selector and copy the declared type to the associate name. Before throwing a no implicit type error, resolve all allowed selector expressions, and copy the resulting typespec. PR fortran/67543 * resolve.c (resolve_assoc_var): Selector must cannot be the NULL expression and it must have a type. PR fortran/78152 * resolve.c (resolve_symbol): Allow associate names to be coarrays. 2017-10-16 Paul Thomas PR fortran/78512 * gfortran.dg/associate_9.f03 : Remove XFAIL. * gfortran.dg/associate_26.f90 : New test. PR fortran/80120 * gfortran.dg/associate_27.f90 : New test. PR fortran/81903 * gfortran.dg/associate_28.f90 : New test. PR fortran/82121 * gfortran.dg/associate_29.f90 : New test. PR fortran/67543 * gfortran.dg/associate_30.f90 : New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/associate_26.f90 branches/gcc-7-branch/gcc/testsuite/gfortran.dg/associate_27.f90 branches/gcc-7-branch/gcc/testsuite/gfortran.dg/associate_28.f90 branches/gcc-7-branch/gcc/testsuite/gfortran.dg/associate_29.f90 branches/gcc-7-branch/gcc/testsuite/gfortran.dg/associate_30.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/match.c branches/gcc-7-branch/gcc/fortran/primary.c branches/gcc-7-branch/gcc/fortran/resolve.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/gfortran.dg/associate_9.f03
[Bug fortran/82121] [7/8 Regression] Unclassifiable statement during compilation when assigning to a Character array in a derived type contained in a ASSOCIATE statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82121 --- Comment #2 from Paul Thomas --- Author: pault Date: Thu Sep 21 18:40:21 2017 New Revision: 253077 URL: https://gcc.gnu.org/viewcvs?rev=253077=gcc=rev Log: 2017-09-21 Paul ThomasPR fortran/52832 * match.c (gfc_match_associate): Before failing the association try again, allowing a proc pointer selector. PR fortran/80120 PR fortran/81903 PR fortran/82121 * primary.c (gfc_match_varspec): Introduce 'tgt_expr', which points to the associate selector, if any. Go through selector references, after resolution for variables, to catch any full or section array references. If a class associate name does not have the same declared type as the selector, resolve the selector and copy the declared type to the associate name. Before throwing a no implicit type error, resolve all allowed selector expressions, and copy the resulting typespec. PR fortran/67543 * resolve.c (resolve_assoc_var): Selector must cannot be the NULL expression and it must have a type. PR fortran/78152 * resolve.c (resolve_symbol): Allow associate names to be coarrays. 2017-09-21 Paul Thomas PR fortran/78512 * gfortran.dg/associate_26.f90 : New test. PR fortran/80120 * gfortran.dg/associate_27.f90 : New test. PR fortran/81903 * gfortran.dg/associate_28.f90 : New test. PR fortran/82121 * gfortran.dg/associate_29.f90 : New test. PR fortran/67543 * gfortran.dg/associate_30.f90 : New test. PR fortran/52832 * gfortran.dg/associate_31.f90 : New test. Added: trunk/gcc/testsuite/gfortran.dg/associate_26.f90 trunk/gcc/testsuite/gfortran.dg/associate_27.f90 trunk/gcc/testsuite/gfortran.dg/associate_28.f90 trunk/gcc/testsuite/gfortran.dg/associate_29.f90 trunk/gcc/testsuite/gfortran.dg/associate_30.f90 trunk/gcc/testsuite/gfortran.dg/associate_31.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/match.c trunk/gcc/fortran/primary.c trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog
[Bug fortran/82121] [7/8 Regression] Unclassifiable statement during compilation when assigning to a Character array in a derived type contained in a ASSOCIATE statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82121 Dominique d'Humieres changed: What|Removed |Added Priority|P3 |P4 Status|UNCONFIRMED |NEW Known to work||6.4.0 Keywords||rejects-valid Last reconfirmed||2017-09-06 CC||pault at gcc dot gnu.org Ever confirmed|0 |1 Summary|Unclassifiable statement|[7/8 Regression] |during compilation when |Unclassifiable statement |assigning to a Character|during compilation when |array in a derived type |assigning to a Character |contained in a ASSOCIATE|array in a derived type |statement |contained in a ASSOCIATE ||statement Known to fail||7.2.0, 8.0 --- Comment #1 from Dominique d'Humieres --- Confirmed, likely r241860 (pr64933).