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

Fortran: reject NULL as source-expr in ALLOCATE with SOURCE= or MOLD= [PR71884]

	PR fortran/71884

gcc/fortran/ChangeLog:

	* resolve.cc (resolve_allocate_expr): Reject intrinsic NULL as
	source-expr.

gcc/testsuite/ChangeLog:

	* gfortran.dg/pr71884.f90: New test.
parent 2619413a
No related branches found
No related tags found
Loading
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