https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104430
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:c0134b7383992aab5c1a91440dbdd8fbb747169c commit r12-7526-gc0134b7383992aab5c1a91440dbdd8fbb747169c Author: Tobias Burnus <tob...@codesourcery.com> Date: Mon Mar 7 22:11:33 2022 +0100 Fortran: Fix gfc_maybe_dereference_var [PR104430][PR99585] PR fortran/99585 PR fortran/104430 gcc/fortran/ChangeLog: * trans-expr.cc (conv_parent_component_references): Fix comment; simplify comparison. (gfc_maybe_dereference_var): Avoid d referencing a nonpointer. gcc/testsuite/ChangeLog: * gfortran.dg/class_result_10.f90: New test.