[Patch, Fortran, OOP] PR 45933:[4.6 regression] ICE in gfc_add_component_ref, at fortran/class.c:77
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 8 19:34:00 GMT 2010
On Fri, Oct 08, 2010 at 11:54:56AM -0700, Mark Rashid wrote:
>
> But I'm not sure we are entirely out of the woods yet. Attached are two
> modules and a test program. Module DAT_MOD specifies a derived type
> that has a type-bound operator (.LT.). Module NODE_MOD specifies
> another derived type (not an extension of DAT_MOD's), also with .LT. as
> a type-bound operator, and with a component of the type defined in
> DAT_MOD. Program TEST defines a couple variables of type NODE and
> attempts to compare them with .LT. This invocation makes use of
> the .LT. of both type DAT and type MOD. The two modules compile OK, but
> then compiling TEST produces:
>
> test.f:22.16:
>
> PRINT *, (NDA .LT. NDB)
> 1
> Error: Operands of comparison operator '.lt.' at (1) are
> CLASS(node)/CLASS(node)
>
This seems to be a variation on
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45786
--
Steve
More information about the Fortran
mailing list