[Bug fortran/55172] [4.7/4.8 Regression] [OOP] ICE on invalid: gfc_variable_attr(): Bad array reference
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 2 11:07:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55172
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-11-02
Summary|[OOP] ICE on invalid: |[4.7/4.8 Regression] [OOP]
|gfc_variable_attr(): Bad |ICE on invalid:
|array reference |gfc_variable_attr(): Bad
| |array reference
Ever Confirmed|0 |1
--- Comment #1 from janus at gcc dot gnu.org 2012-11-02 11:07:33 UTC ---
(In reply to comment #0)
> (Reported by Janus at http://gcc.gnu.org/ml/fortran/2012-11/msg00005.html):
> With 4.7 the ICE also occurs, but only after the correct error message:
>
> select type (component => self%cb(i))
> 1
> Error: Symbol 'i' at (1) has no IMPLICIT type
Yes, therefore it's a regression in 4.7 (ICE after error) and 4.8 (ICE only).
4.6 of course rejects it ('cleanly') with:
class(ncb), allocatable, dimension(:) :: cb
1
Fatal Error: Polymorphic array at (1) not yet supported
(Side note: The 'fatal' seems a bit strong here, but that was probably used to
suppress further error messages.)
More information about the Gcc-bugs
mailing list