[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2012-04-10 Thread abenson at caltech dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 Andrew Benson abenson at caltech dot edu changed: What|Removed |Added CC||abenson at

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2012-02-09 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #15 from Tobias Burnus burnus at gcc dot gnu.org 2012-02-09 17:48:11 UTC --- Created attachment 26628 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26628 Small patch for the resolve.c. It misses all the real work (trans*.c).

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2012-01-06 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #14 from Tobias Burnus burnus at gcc dot gnu.org 2012-01-06 10:24:24 UTC --- As litmus test: BT_CLASS version of PR 50981: Passing an unallocated/unassociated [or absent + nonpointer/nonallocatable] BT_CLASS variable or a

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-07-22 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #13 from Tobias Burnus burnus at gcc dot gnu.org 2011-07-22 12:08:28 UTC --- Regarding the LHS (in addition to comment 6): - It may not be coindexed (!gfc_is_conindexed(e)) - It may not be a coarray (!gfc_expr_attr (e).codimension) -

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-11 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #12 from Tobias Burnus burnus at gcc dot gnu.org 2011-02-11 19:38:23 UTC --- (In reply to comment #10) The following patch makes the test case in comment #3 work correctly: I think your current patch only works if declared type

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-10 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 janus at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-10 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #11 from janus at gcc dot gnu.org 2011-02-10 22:56:21 UTC --- Stupid question, but shouldn't it be possible to replace the call to 'is_scalar_reallocatable_lhs' by a check for the allocatable attribute? Index:

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-04 Thread pault at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #9 from Paul Thomas pault at gcc dot gnu.org 2011-02-04 09:32:01 UTC --- (In reply to comment #5) Realloc-on-assign for scalars was implemented in r169356. Paul, what does it take to make this work for polymorphic scalars? Not a

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #3 from janus at gcc dot gnu.org 2011-02-03 20:45:04 UTC --- Test case: type :: t integer :: i end type class(t), allocatable :: x type(t) :: y = t (3) x = y print *,x%i end

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #4 from janus at gcc dot gnu.org 2011-02-03 20:56:10 UTC --- Here is a simple patch for getting rid of the error message: Index: gcc/fortran/resolve.c === ---

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 janus at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-03 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #6 from Tobias Burnus burnus at gcc dot gnu.org 2011-02-03 21:24:38 UTC --- (In reply to comment #4) Here is a simple patch for getting rid of the error message: The patch is not quite right. The LHS must be allocatable

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-03 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #7 from Tobias Burnus burnus at gcc dot gnu.org 2011-02-03 21:28:10 UTC --- (In reply to comment #4) Here is a simple patch for getting rid of the error message: The patch is not quite right. The LHS must be allocatable and it must

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2011-02-03 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43366 --- Comment #8 from Tobias Burnus burnus at gcc dot gnu.org 2011-02-03 21:29:12 UTC --- (In reply to comment #6) Stupid firefox - it somehow must have submitted a draft. Ignore comment 6 and look at comment 7.

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2010-08-03 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-08-03 11:23 --- (In reply to comment #1) note that realloc on assignment must be supported to get this working properly ... which is PR35810. -- janus at gcc dot gnu dot org changed: What|Removed

[Bug fortran/43366] [OOP][F2008] Intrinsic assign to polymorphic variable

2010-03-14 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2010-03-14 14:01 --- See Variable must not be polymorphic in assignment in resolve.c and note that realloc on assignment must be supported to get this working properly (might already work for derived types). --