re PR fortran/35184 (ICE in gfc_conv_array_index_offset)

2008-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/35184
	* trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
	assert.

From-SVN: r133252
This commit is contained in:
Jerry DeLisle 2008-03-15 16:45:12 +00:00
parent ed97ddc649
commit db5cf0c77e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/35184
* trans-array.c (gfc_conv_array_index_offset): Remove unnecessary
assert.
2008-03-15 Daniel Franke <franke.daniel@gmail.com>
PR fortran/35584

View File

@ -2209,7 +2209,6 @@ gfc_conv_array_index_offset (gfc_se * se, gfc_ss_info * info, int dim, int i,
switch (ar->dimen_type[dim])
{
case DIMEN_ELEMENT:
gcc_assert (i == -1);
/* Elemental dimension. */
gcc_assert (info->subscript[dim]
&& info->subscript[dim]->type == GFC_SS_SCALAR);