--- Comment #5 from burnus at gcc dot gnu dot org 2010-06-09 15:07 ---
With the patch for PR 44211 (just committed to the 4.6 trunk), the program
compiles and the output is:
shape
In generic_shape_assign
x = 10
y = 20
circle
In generic_shape_assign
x =
...@gcc.gnu.org]
Sent: 09 June 2010 16:07
To: i...@rhymneyconsulting.co.uk
Subject: [Bug fortran/44465] [OOP] ICE with polymorphic object oriented
example
--- Comment #5 from burnus at gcc dot gnu dot org 2010-06-09 15:07
---
With the patch for PR 44211 (just committed to the 4.6 trunk
--- Comment #1 from burnus at gcc dot gnu dot org 2010-06-08 13:00 ---
(In reply to comment #0)
c:\document\fortran\newbook\examples\ch32gfortran shape_p.f90 circle_p.f90
rectangle_p.f90 polymorph_array.f90
polymorph_array.f90: In function 'polymorphic':
polymorph_array.f90:18:0:
: 08 June 2010 14:01
To: i...@rhymneyconsulting.co.uk
Subject: [Bug fortran/44465] [OOP] ICE with polymorphic object oriented
example
--- Comment #1 from burnus at gcc dot gnu dot org 2010-06-08 13:00
---
(In reply to comment #0)
c:\document\fortran\newbook\examples\ch32gfortran
--- Comment #3 from burnus at gcc dot gnu dot org 2010-06-08 13:53 ---
Valgrind shows:
==26969== Invalid read of size 4
==26969==at 0x553131: gfc_conv_scalarized_array_ref (trans-array.c:2494)
==26969==by 0x553824: gfc_conv_array_ref (trans-array.c:2547)
==26969==by
--- Comment #4 from janus at gcc dot gnu dot org 2010-06-08 14:22 ---
Actually this seems to be a duplicate of PR 44211. It is fixed by the patch I
submitted yesterday:
http://gcc.gnu.org/ml/fortran/2010-06/msg00060.html
The patch has been approved by Tobias, and I will commit it once