Commit 4f028369 by Jakub Jelinek Committed by Jakub Jelinek

re PR fortran/71204 (ICE with -O0 in expand_expr_real_1, at expr.c:9651)

	PR fortran/71204
	* frontend-passes.c (realloc_string_callback): Clear inserted_block
	and changed_statement before calling create_var.

	* gfortran.dg/pr71204.f90: New test.

From-SVN: r236525
parent 78520f3f
2016-05-20 Jakub Jelinek <jakub@redhat.com>
PR fortran/71204
* frontend-passes.c (realloc_string_callback): Clear inserted_block
and changed_statement before calling create_var.
2016-05-15 Harald Anlauf <anlauf@gmx.de> 2016-05-15 Harald Anlauf <anlauf@gmx.de>
PR fortran/69603 PR fortran/69603
......
...@@ -174,8 +174,10 @@ realloc_string_callback (gfc_code **c, int *walk_subtrees ATTRIBUTE_UNUSED, ...@@ -174,8 +174,10 @@ realloc_string_callback (gfc_code **c, int *walk_subtrees ATTRIBUTE_UNUSED,
if (!gfc_check_dependency (expr1, expr2, true)) if (!gfc_check_dependency (expr1, expr2, true))
return 0; return 0;
current_code = c; current_code = c;
inserted_block = NULL;
changed_statement = NULL;
n = create_var (expr2, "trim"); n = create_var (expr2, "trim");
co->expr2 = n; co->expr2 = n;
return 0; return 0;
......
2016-05-20 Jakub Jelinek <jakub@redhat.com>
PR fortran/71204
* gfortran.dg/pr71204.f90: New test.
2016-05-20 Cesar Philippidis <cesar@codesourcery.com> 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
* gcc.target/nvptx/sincos.c: New test. * gcc.target/nvptx/sincos.c: New test.
......
! PR fortran/71204
! { dg-do compile }
! { dg-options "-O0" }
module pr71204
character(10), allocatable :: z(:)
end module
subroutine s1
use pr71204
z(2) = z(1)
end
subroutine s2
use pr71204
z(2) = z(1)
end
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