[Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class

2017-10-21 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81898

Paul Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||pault at gcc dot gnu.org
 Resolution|--- |DUPLICATE

--- Comment #5 from Paul Thomas  ---
Hi Joe,

Many thanks for your report. As it happens, this is a duplicate and so you
won't get to achieve fame and fortune as the contributor of a testcase - sorry
about that.

Please keep on supporting us with bug reports.

Paul

*** This bug has been marked as a duplicate of bug 82312 ***

[Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class

2017-08-21 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81898

--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to janus from comment #3)
> I think the regression has been introduced by r241439, in particular the
> resolve.c part. Reverting it makes the segfault disappear.

Unfortunately reverting that part seems to cause quite a number of regressions
in the testsuite:

FAIL: gfortran.dg/allocate_with_source_16.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/allocate_with_source_6.f90   -O  execution test
FAIL: gfortran.dg/associated_target_4.f90   -O0  execution test
FAIL: gfortran.dg/class_10.f03   -O  (internal compiler error)
FAIL: gfortran.dg/class_array_15.f03   -O0  (internal compiler error)
FAIL: gfortran.dg/coarray_allocate_4.f08   -O0  execution test
FAIL: gfortran.dg/dtio_5.f90   -O0  execution test
FAIL: gfortran.dg/dynamic_dispatch_6.f03   -O0  (internal compiler error)
FAIL: gfortran.dg/interface_32.f90   -O  (internal compiler error)
FAIL: gfortran.dg/pointer_assign_9.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/pointer_assign_11.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/select_type_35.f03   -O0  execution test
FAIL: gfortran.dg/select_type_4.f90   -O0  (internal compiler error)
FAIL: gfortran.dg/typebound_proc_25.f90   -O  (internal compiler error)
FAIL: gfortran.dg/unlimited_polymorphic_22.f90   -O0  execution test
FAIL: gfortran.dg/unlimited_polymorphic_24.f03   -O0  (internal compiler error)
FAIL: gfortran.dg/unlimited_polymorphic_3.f03   -O0  execution test
FAIL: gfortran.dg/prof/dynamic_dispatch_6.f03 compilation,  -fprofile-generate
-D_PROFILE_GENERATE (internal compiler error)

[Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class

2017-08-21 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81898

janus at gcc dot gnu.org changed:

   What|Removed |Added

 CC||vehre at gcc dot gnu.org

--- Comment #3 from janus at gcc dot gnu.org ---
I think the regression has been introduced by r241439, in particular the
resolve.c part. Reverting it makes the segfault disappear.

[Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class

2017-08-21 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81898

--- Comment #2 from janus at gcc dot gnu.org ---
Comparing the dump that is produced by version 6 and 7, I see that the latter
contains an additional line, just before the type-bound call which produces the
segfault:

   (struct __vtype_amodule_Btype *) a._data->obj._vptr =
&__vtab_amodule_Btype;
+  a._vptr = (struct __vtype_amodule_Atype * {ref-all}) a._data->obj._vptr;
   a._data->bobj = a._data->obj._data;

It seems to come from the pointer assignment, but is certainly wrong (it
effectively sets a's vptr to Btype).

[Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class

2017-08-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81898

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug fortran/81898] [7/8 Regression] [OOP] Issue with polymorphic container class

2017-08-20 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81898

janus at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|--- |7.3
Summary|[7/8 Regression] Issue with |[7/8 Regression] [OOP]
   |polymorphic container class |Issue with polymorphic
   ||container class