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

Fortran - (large) arrays in the main shall be static

gcc/fortran/ChangeLog:

	PR fortran/102366
	* trans-decl.c (gfc_finish_var_decl): Disable the warning message
	for variables moved from stack to static storange if they are
	declared in the main, but allow the move to happen.

gcc/testsuite/ChangeLog:

	PR fortran/102366
	* gfortran.dg/pr102366.f90: New test.
parent 42eff613
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