[Bug fortran/68864] [6 Regression] ICE: in gfc_get_descriptor_dimension, at fortran/trans-array.c:268

2016-01-01 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68864

--- Comment #4 from Paul Thomas  ---
Author: pault
Date: Fri Jan  1 17:02:51 2016
New Revision: 232026

URL: https://gcc.gnu.org/viewcvs?rev=232026=gcc=rev
Log:
2016-01-01  Paul Thomas  

PR fortran/68864
* trans-array.c (evaluate_bound): If deferred, test that 'desc'
is an array descriptor before using gfc_conv_descriptor_xxx.


2016-01-01  Paul Thomas  

PR fortran/68864
* gfortran.dg/pr68864.f90: New test.


Added:
trunk/gcc/testsuite/gfortran.dg/pr68864.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/68864] [6 Regression] ICE: in gfc_get_descriptor_dimension, at fortran/trans-array.c:268

2016-01-01 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68864

Paul Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Paul Thomas  ---
Fixed on trunk.

Thanks for the report

Paul

[Bug fortran/68864] [6 Regression] ICE: in gfc_get_descriptor_dimension, at fortran/trans-array.c:268

2015-12-12 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68864

Paul Thomas  changed:

   What|Removed |Added

 CC||pault at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |pault at gcc dot gnu.org

--- Comment #3 from Paul Thomas  ---
Created attachment 37010
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37010=edit
Fix for the PR

The attached fixes the problem and bootstraps and regtests OK on FC21/x86_64.

Before committing, I want to understand better why the problem is occurring. It
is associated with the finalization routines but I cannot see why at the
moment.

That said, it is obvious that an ARRAY_TYPE should not be sent to any of the
functions that handle descriptors and that this fix cannot do any harm.

Cheers

Paul

PS this makes a nice change from PR54070, where I have a fix for all the
testcase but which fails at any level of optimization :-)

[Bug fortran/68864] [6 Regression] ICE: in gfc_get_descriptor_dimension, at fortran/trans-array.c:268

2015-12-11 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68864

Dominique d'Humieres  changed:

   What|Removed |Added

Summary|bug 61819 is not completely |[6 Regression] ICE: in
   |fixed   |gfc_get_descriptor_dimensio
   ||n, at
   ||fortran/trans-array.c:268

--- Comment #2 from Dominique d'Humieres  ---
> The code compiles with 5.3.0 and 5.3.1 (r231560). With trunk it compiles
> with r229303 (2015-10-25), r229438 gives the ICE

Hence a regression.