[Bug fortran/55825] [OOP] Bogus rank error with CLASS pointer assignment using structure constructors

2012-12-28 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55825 --- Comment #5 from janus at gcc dot gnu.org 2012-12-28 21:53:38 UTC --- There are problems with handling CLASS components in gfc_trans_subcomponent_assign: Index: gcc/fortran/trans-expr.c ===

[Bug fortran/55825] [OOP] Bogus rank error with CLASS pointer assignment using structure constructors

2012-12-28 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55825 --- Comment #4 from janus at gcc dot gnu.org 2012-12-28 20:19:06 UTC --- After getting past the error messages with the patches in comment 2 and 3, the test case segfaults with the following backtrace: internal compiler error: Segmentation

[Bug fortran/55825] [OOP] Bogus rank error with CLASS pointer assignment using structure constructors

2012-12-28 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55825 --- Comment #3 from janus at gcc dot gnu.org 2012-12-28 19:23:38 UTC --- The second error is fixed by the following: Index: gcc/fortran/intrinsic.c === --- gcc/fortran/intrin

[Bug fortran/55825] [OOP] Bogus rank error with CLASS pointer assignment using structure constructors

2012-12-28 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55825 janus at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed

[Bug fortran/55825] [OOP] Bogus rank error with CLASS pointer assignment using structure constructors

2012-12-28 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55825 --- Comment #1 from janus at gcc dot gnu.org 2012-12-28 17:36:39 UTC --- Reduced test case: program construct_poly implicit none type :: interior real :: x end type interior type :: t_ptr class(interior), poi