]> gcc.gnu.org Git - gcc.git/commit
Fortran: Fix a problem with SELECT TYPE selectors [PR104555].
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 30 Oct 2023 07:12:40 +0000 (07:12 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 30 Oct 2023 07:12:40 +0000 (07:12 +0000)
commitf3e44d079747daf56307ada8a2e2e56b64934014
tree1bdfdd2ee9c7e1196fb35b2ab337f71e8684d8c5
parent8c40b72036c967fbb1d1150515cf70aec382f0a2
Fortran: Fix a problem with SELECT TYPE selectors [PR104555].

2023-10-30  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/104555
* resolve.cc (resolve_select_type): If the selector expression
has no class component references and the expression is a
derived type, copy the typespec of the symbol to that of the
expression.

gcc/testsuite/
PR fortran/104555
* gfortran.dg/pr104555.f90: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr104555.f90 [new file with mode: 0644]
This page took 0.070625 seconds and 5 git commands to generate.