[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2009-01-01 Thread danglin at gcc dot gnu dot org


--- Comment #8 from danglin at gcc dot gnu dot org  2009-01-01 17:43 ---
Subject: Bug 38675

Author: danglin
Date: Thu Jan  1 17:42:00 2009
New Revision: 142995

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=142995
Log:
PR fortran/38675
Backport from mainline:
2008-12-09  Mikael Morin  mikael.mo...@tele2.fr

PR fortran/37469
* expr.c (find_array_element): Simplify array bounds.
Assert that both bounds are constant expressions.

2008-10-31  Mikael Morin  mikael.mo...@tele2.fr

* expr.c (gfc_reduce_init_expr): New function, containing checking code
from gfc_match_init_expr, so that checking can be deferred. 
(gfc_match_init_expr): Use gfc_reduce_init_expr.
* match.h (gfc_reduce_init_expr): Prototype added. 


Modified:
branches/gcc-4_3-branch/gcc/fortran/ChangeLog
branches/gcc-4_3-branch/gcc/fortran/expr.c
branches/gcc-4_3-branch/gcc/fortran/match.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2009-01-01 Thread danglin at gcc dot gnu dot org


--- Comment #9 from danglin at gcc dot gnu dot org  2009-01-01 17:44 ---
Fixed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2009-01-01 Thread danglin at gcc dot gnu dot org


--- Comment #10 from danglin at gcc dot gnu dot org  2009-01-01 17:45 
---
Forgot to check button.


-- 

danglin at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2008-12-31 Thread dave at hiauly1 dot hia dot nrc dot ca


--- Comment #6 from dave at hiauly1 dot hia dot nrc dot ca  2008-12-31 
23:28 ---
Subject: Re:  FAIL:
gfortran.dg/parameter_array_init_3.f90  -O  (internal compiler
error)

On Tue, 30 Dec 2008, mikael at gcc dot gnu dot org wrote:

  Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
  that difficult?
 No, it should be manageable. 

I currently testing the attached backport.  It fixes the ICE on
hppa64-hp-hpux11.11.  If there are no regressions on hppa2.0w-hp-hpux11.11, I
will commit.

I left off the change to io.c as it's a secondary issue.

Dave


--- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca  2008-12-31 
23:28 ---
Created an attachment (id=17019)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17019action=view)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2008-12-30 Thread danglin at gcc dot gnu dot org


--- Comment #1 from danglin at gcc dot gnu dot org  2008-12-30 21:03 ---
(gdb) p *p
$2 = {expr_type = EXPR_ARRAY, ts = {type = BT_INTEGER, kind = 1, 
derived = 0x0, cl = 0x0, is_c_interop = 0, is_iso_c = 0, 
f90_type = BT_UNKNOWN}, rank = 0, shape = 0x800100131b58, 
  symtree = 0x0, ref = 0x800100131b90, where = {
nextc = 0x8001001279e3   [(1,i=1,len(HEX1))], 
lb = 0x800100127998}, inline_noncopying_intrinsic = 0, is_boz = 0, 
  error = 0, con_by_offset = 0x0, representation = {length = 0, 
string = 0x0}, value = {logical = -2147483647, integer = {{
_mp_alloc = -2147483647, _mp_size = 1242656, _mp_d = 0x0}}, real = {{
_mpfr_prec = 9223372041150985760, _mpfr_sign = 0, _mpfr_exp = 0, 
_mpfr_d = 0x0}}, complex = {r = {{_mpfr_prec = 9223372041150985760, 
  _mpfr_sign = 0, _mpfr_exp = 0, _mpfr_d = 0x0}}, i = {{
  _mpfr_prec = 0, _mpfr_sign = 0, _mpfr_exp = 0, _mpfr_d = 0x0}}}, 
op = {operator = -2147483647, uop = 0x0, op1 = 0x0, op2 = 0x0}, 
function = {actual = 0x80010012f620, name = 0x0, isym = 0x0, 
  esym = 0x0}, character = {length = -2147483647, string = 0x0}, 
constructor = 0x80010012f620}}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2008-12-30 Thread kargl at gcc dot gnu dot org


--- Comment #2 from kargl at gcc dot gnu dot org  2008-12-30 21:15 ---
See PR 37469

Given the last comment.  This will probably be closed with a WONTFIX.


-- 

kargl at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2008-12-30 Thread dave at hiauly1 dot hia dot nrc dot ca


--- Comment #3 from dave at hiauly1 dot hia dot nrc dot ca  2008-12-30 
21:40 ---
Subject: Re:  FAIL: gfortran.dg/parameter_array_init_3.f90  -O  (internal
compiler error)

 Given the last comment.  This will probably be closed with a WONTFIX.

Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
that difficult?

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2008-12-30 Thread mikael at gcc dot gnu dot org


--- Comment #4 from mikael at gcc dot gnu dot org  2008-12-30 22:12 ---
(In reply to comment #3)
 Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
 that difficult?
No, it should be manageable. 
I gave up when the patch refused to apply. Sorry.
I could try harder. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675



[Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)

2008-12-30 Thread dave at hiauly1 dot hia dot nrc dot ca


--- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca  2008-12-30 
22:21 ---
Subject: Re:  FAIL: gfortran.dg/parameter_array_init_3.f90  -O  (internal
compiler error)

  Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
  that difficult?
 No, it should be manageable. 
 I gave up when the patch refused to apply. Sorry.
 I could try harder. 

There were a few formating changes and try changed to gfc_try.  I'm
just about to do a build with the backport.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675