Commit 9b7df66f by Thomas Koenig

re PR fortran/66041 (Matmul ICE)

2015-05-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/66041
	PR fortran/37131
	* gfortran.h (gfc_array_spec):  Add field resolved.
	* array.c (gfc_resolve_array_spec):  Resolve array spec
	only once.

From-SVN: r223031
parent 3591a123
2015-05-12 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/66041
PR fortran/37131
* gfortran.h (gfc_array_spec): Add field resolved.
* array.c (gfc_resolve_array_spec): Resolve array spec
only once.
2015-05-11 Mikael Morin <mikael@gcc.gnu.org> 2015-05-11 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/66100 PR fortran/66100
......
...@@ -338,6 +338,9 @@ gfc_resolve_array_spec (gfc_array_spec *as, int check_constant) ...@@ -338,6 +338,9 @@ gfc_resolve_array_spec (gfc_array_spec *as, int check_constant)
if (as == NULL) if (as == NULL)
return true; return true;
if (as->resolved)
return true;
for (i = 0; i < as->rank + as->corank; i++) for (i = 0; i < as->rank + as->corank; i++)
{ {
e = as->lower[i]; e = as->lower[i];
...@@ -364,6 +367,8 @@ gfc_resolve_array_spec (gfc_array_spec *as, int check_constant) ...@@ -364,6 +367,8 @@ gfc_resolve_array_spec (gfc_array_spec *as, int check_constant)
} }
} }
as->resolved = true;
return true; return true;
} }
......
...@@ -1002,6 +1002,8 @@ typedef struct ...@@ -1002,6 +1002,8 @@ typedef struct
bool cp_was_assumed; /* AS_ASSUMED_SIZE cp arrays are converted to bool cp_was_assumed; /* AS_ASSUMED_SIZE cp arrays are converted to
AS_EXPLICIT, but we want to remember that we AS_EXPLICIT, but we want to remember that we
did this. */ did this. */
bool resolved;
} }
gfc_array_spec; gfc_array_spec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment