aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorPaul Thomas <pault@gcc.gnu.org>2023-10-27 09:33:38 +0100
committerPaul Thomas <pault@gcc.gnu.org>2023-10-27 09:33:38 +0100
commitb038e202210eb3e982c2ec802438edd523b47a02 (patch)
treea66f3d2ee1a26721e2eb24ba148abb84de1f231a /gcc/expr.cc
parenta5e69e94591ae282857d59e868ff6cea7306c802 (diff)
downloadgcc-b038e202210eb3e982c2ec802438edd523b47a02.zip
gcc-b038e202210eb3e982c2ec802438edd523b47a02.tar.gz
gcc-b038e202210eb3e982c2ec802438edd523b47a02.tar.bz2
Fortran: Fix some problems with SELECT TYPE selectors [PR104625].
2023-10-27 Paul Thomas <pault@gcc.gnu.org> gcc/fortran PR fortran/104625 * expr.cc (gfc_check_vardef_context): Check that the target does have a vector index before emitting the specific error. * match.cc (copy_ts_from_selector_to_associate): Ensure that class valued operator expressions set the selector rank and use the rank to provide the associate variable with an appropriate array spec. * resolve.cc (resolve_operator): Reduce stacked parentheses to a single pair. (fixup_array_ref): Extract selector symbol from parentheses. gcc/testsuite/ PR fortran/104625 * gfortran.dg/pr104625.f90: New test. * gfortran.dg/associate_55.f90: Change error check.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions