]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix CLASS conversion check [PR102745]
authorTobias Burnus <tobias@codesourcery.com>
Mon, 18 Oct 2021 07:49:05 +0000 (09:49 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 19 Oct 2021 08:42:05 +0000 (10:42 +0200)
commit3de82c6c36fea8fad7145b62ccb3a7c06d1f3c51
tree62a1b3cf8898ecaf2edab9f98a693fee8cae56b7
parent164044da342dc5f21132b2a782115f3fd70c29c5
Fortran: Fix CLASS conversion check [PR102745]

PR fortran/102745
gcc/fortran/ChangeLog
* intrinsic.c (gfc_convert_type_warn): Fix checks by checking CLASS
and do typcheck in correct order for type extension.
* misc.c (gfc_typename): Print proper not internal CLASS type name.

gcc/testsuite/ChangeLog
* gfortran.dg/class_72.f90: New.

(cherry picked from commit 017665f63047ce47b087b0b283548a60e5abf3d2)
gcc/fortran/intrinsic.c
gcc/fortran/misc.c
gcc/testsuite/gfortran.dg/class_72.f90 [new file with mode: 0644]