[Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56136 janus at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.9.0
[Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56136 Mikael Morin mikael at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED CC||mikael at gcc dot gnu.org Resolution|--- |FIXED --- Comment #3 from Mikael Morin mikael at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #2) This PR seems to have been fixed between revisions 200062 and 200078 (r200069?). Yes it is the same bug as PR49074. The ingredients are: - typebound assignment (though I'm not sure it is necessary), - elemental procedure with polymorphic dummies, - need for a temporary.
[Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56136 --- Comment #4 from Mikael Morin mikael at gcc dot gnu.org --- Author: mikael Date: Sat Jun 15 21:20:29 2013 New Revision: 200128 URL: http://gcc.gnu.org/viewcvs?rev=200128root=gccview=rev Log: fortran/ PR fortran/49074 PR fortran/56136 * dependency.c (gfc_check_argument_var_dependency): Return 0 in the array constructor case. testsuite/ PR fortran/49074 PR fortran/56136 * gfortran.dg/typebound_assignment_5.f03: Check the absence of any packing. * gfortran.dg/typebound_assignment_6.f03: New. Added: trunk/gcc/testsuite/gfortran.dg/typebound_assignment_6.f03 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/dependency.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/typebound_assignment_5.f03
[Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56136 Mikael Morin mikael at gcc dot gnu.org changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #5 from Mikael Morin mikael at gcc dot gnu.org --- Comment #4 removes an unnecessary packing/unpacking and adds a variant of the testcase of this PR in the testsuite. (In reply to Mikael Morin from comment #3) Yes it is the same bug as PR49074. So the resolution status should be DUPLICATE. *** This bug has been marked as a duplicate of bug 49074 ***
[Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56136 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added CC||mikael.morin at sfr dot fr --- Comment #2 from Dominique d'Humieres dominiq at lps dot ens.fr --- This PR seems to have been fixed between revisions 200062 and 200078 (r200069?).
[Bug fortran/56136] [OOP] ICE on lhs-reallocation of an object with overloaded (elemental) assignment operator
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56136 janus at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords||ice-on-valid-code Last reconfirmed||2013-01-29 CC||janus at gcc dot gnu.org Ever Confirmed|0 |1 Summary|Compiler fails when code|[OOP] ICE on |contains lhs-reallocation |lhs-reallocation of an |of an object with |object with overloaded |overloaded (elemental) |(elemental) assignment |Assignment operator |operator --- Comment #1 from janus at gcc dot gnu.org 2013-01-29 08:38:36 UTC --- Confirmed with 4.7 and trunk. 4.6 yields: A = A(1:50) 1 Error: Non-scalar base object at (1) currently not implemented This slightly different variant also ICEs with 4.6: MODULE A_TEST_M TYPE :: A_TYPE END TYPE INTERFACE ASSIGNMENT (=) MODULE PROCEDURE ASGN_A END INTERFACE CONTAINS ELEMENTAL SUBROUTINE ASGN_A (A, B) CLASS (A_TYPE), INTENT (INOUT) :: A CLASS (A_TYPE), INTENT (IN) :: B END SUBROUTINE END MODULE A_TEST_M PROGRAM ASGN_REALLOC_TEST USE A_TEST_M TYPE (A_TYPE), ALLOCATABLE :: A(:) ALLOCATE (A(100)) A = A(1:50) END PROGRAM