This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78395] [OOP] ICE for operations with polymorphic variables
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Nov 2016 15:01:42 +0000
- Subject: [Bug fortran/78395] [OOP] ICE for operations with polymorphic variables
- Auto-submitted: auto-generated
- References: <bug-78395-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78395
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-11-17
CC| |janus at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from janus at gcc dot gnu.org ---
I can confirm the ICE in gfc_add_component_ref only with gfortran 5.4.1 and
earlier.
gfortran 6.2.0 says:
v6 = 3 * v4%get_t2() ! This line is the one which causes ICE
1
Error: Assignment to an allocatable polymorphic variable at (1) is not yet
supported
And a current trunk build:
v6 = 3 * v4%get_t2() ! This line is the one which causes ICE
1
Error: Can't convert TYPE(__vtype_types_mod_A1) to CLASS(a2) at (1)
The error with 6.2 is acceptable, I guess, but the one with trunk is not so
nice.