[Bug fortran/57305] [OOP] ICE when calling SIZEOF on an unlimited polymorphic variable
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 21 13:18:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57305
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
CC| |janus at gcc dot gnu.org
Summary|ICE with warnings and |[OOP] ICE when calling
|unlimited polymorphic |SIZEOF on an unlimited
| |polymorphic variable
--- Comment #5 from janus at gcc dot gnu.org ---
The ICE on comment 1 seems to be due to the SIZEOF call. Reduced test case:
subroutine add_element_poly(e)
class(*) :: e
print *, sizeof(e)
end subroutine
Fails with 4.8 and current trunk.
More information about the Gcc-bugs
mailing list