Commit 28ec36ea by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR fortran/33636 (Rejects valid use of vector subscript in derived type parameter)

	PR fortran/33636
	* expr.c (find_array_section): Check for constructor constantness.

From-SVN: r129208
parent e7c61201
2007-10-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/33636
* expr.c (find_array_section): Check for constructor constantness.
2007-10-08 Tobias Schlter <tobi@gcc.gnu.org> 2007-10-08 Tobias Schlter <tobi@gcc.gnu.org>
PR fortran/33689 PR fortran/33689
......
...@@ -1165,7 +1165,7 @@ find_array_section (gfc_expr *expr, gfc_ref *ref) ...@@ -1165,7 +1165,7 @@ find_array_section (gfc_expr *expr, gfc_ref *ref)
{ {
gcc_assert (begin); gcc_assert (begin);
if (begin->expr_type != EXPR_ARRAY) if (begin->expr_type != EXPR_ARRAY || !gfc_is_constant_expr (begin))
{ {
t = FAILURE; t = FAILURE;
goto cleanup; goto cleanup;
......
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