Skip to content
Snippets Groups Projects
Commit b8f284d3 authored by Harald Anlauf's avatar Harald Anlauf
Browse files

Fortran: improve error recovery for EXTENDS_TYPE_OF() [PR106121]


gcc/fortran/ChangeLog:

	PR fortran/106121
	* simplify.cc (gfc_simplify_extends_type_of): Do not attempt to
	simplify when one of the arguments is a CLASS variable that was
	not properly declared.

gcc/testsuite/ChangeLog:

	PR fortran/106121
	* gfortran.dg/extends_type_of_4.f90: New test.

Co-authored-by: default avatarSteven G. Kargl <kargl@gcc.gnu.org>
parent 01779f4f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment