[Bug fortran/42385] [OOP] poylmorphic operators do not work
sfilippone at uniroma2 dot it
gcc-bugzilla@gcc.gnu.org
Tue Jul 13 09:24:00 GMT 2010
------- Comment #5 from sfilippone at uniroma2 dot it 2010-07-13 09:24 -------
(In reply to comment #4)
> Carry on the test case from PR 43945 comment 19 (cf. also PR 43945 comment 30,
> 31, 32):
>
>
> As the test case in comment 3 (attachment 21184 [edit]) is different from the one of
> PR 43945 comment 19, I add the latter as well:
>
> Attachment 20927 [edit] compiles with both crayftn and gfortran, but the run-time
> result is different; while crayftn has
>
> Allocated COO succesfully, should now set components
> STOP
>
> with gfortran the result is
>
> Error: Missing ovverriding impl for allocate in class COO
>
The two are intended to generate the same error, i.e. resolution to the base
specific instead of the overriding one. As far as I can tell the error is
caused by having a binding-name => specific-name in the base version; if the
base version has just a name (thus binding==specific) the resolution mechanism
works.
Salvatore
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42385
More information about the Gcc-bugs
mailing list