[Bug fortran/52994] [OOP] [F08] internal compiler error: in gfc_trans_assignment_1, at fortran/trans-expr.c:6881
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Apr 15 20:41:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52994
--- Comment #9 from janus at gcc dot gnu.org 2012-04-15 20:41:27 UTC ---
(In reply to comment #8)
> > Just out of curiosity: Are you aware of any compiler which swallows this?
>
> No. I've just tried it with PGI (pgf95) but it chokes on "contains" "within a
> derived type definition".
That was probably an older version. I'm pretty sure the more recent versions of
PGI at least support type-bound procedures.
> > I.e. it prints only one number, where it actually should print three.
>
> Isn't arr(-1:-1) meaning a[-1], i.e. just one element?
Ah, yes. I somehow misread it as arr(-1:1). Sorry for the false alarm.
More information about the Gcc-bugs
mailing list