re PR fortran/46678 (Wrong code with strings)

2010-11-27  Tobias Burnus  <burnus@net-b.de>
	    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/46678
	trans-decl.c (gfc_trans_auto_character_variable): Use gfc_init_block
	instead of gfc_start_block.

Co-Authored-By: Jerry DeLisle <jvdelisle@gcc.gnu.org>

From-SVN: r167218
This commit is contained in:
Tobias Burnus 2010-11-28 08:42:56 +01:00 committed by Jerry DeLisle
parent 68f378af29
commit 323cea66a6
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2010-11-27 Tobias Burnus <burnus@net-b.de>
Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/46678
trans-decl.c (gfc_trans_auto_character_variable): Use gfc_init_block
instead of gfc_start_block.
2010-11-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/46301

View File

@ -2952,7 +2952,7 @@ gfc_trans_auto_character_variable (gfc_symbol * sym, gfc_wrapped_block * block)
gcc_assert (sym->backend_decl);
gcc_assert (sym->ts.u.cl && sym->ts.u.cl->length);
gfc_start_block (&init);
gfc_init_block (&init);
/* Evaluate the string length expression. */
gfc_conv_string_length (sym->ts.u.cl, NULL, &init);