Fortran: error recovery after invalid use of CLASS variable [PR103475]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 13 Feb 2023 21:02:44 +0000 (22:02 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 13 Feb 2023 21:06:10 +0000 (22:06 +0100)
commit2ce7e2a83e18a27fe9c659f8667fc24f0df4ea9a
treec66705d0afcae3f2ba1ca7e0ac0a1d99a160916a
parent00b8a212ea2132fb68e42488317392346e169035
Fortran: error recovery after invalid use of CLASS variable [PR103475]

gcc/fortran/ChangeLog:

PR fortran/103475
* primary.cc (gfc_expr_attr): Avoid NULL pointer dereference for
invalid use of CLASS variable.

gcc/testsuite/ChangeLog:

PR fortran/103475
* gfortran.dg/pr103475.f90: New test.
gcc/fortran/primary.cc
gcc/testsuite/gfortran.dg/pr103475.f90 [new file with mode: 0644]