[Bug fortran/54594] [OOP] Type-bound ASSIGNMENTs (elemental + array version) rejected as ambiguous
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Sep 16 21:07:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54594
--- Comment #8 from janus at gcc dot gnu.org 2012-09-16 21:07:23 UTC ---
(In reply to comment #6)
> With the patch at http://gcc.gnu.org/ml/fortran/2012-09/msg00051.html, the
> tests in comments #0 and #1 fails with
>
> pr54594_1.f90:6.32:
>
> generic :: assignment(=) => a_ass
> 1
> Error: Type-bound operator at (1) can't be NOPASS
>
> Is it expected?
That's a good question. I could not find that restriction in the standard on a
quick check. In any case, the error message comes from
'get_checked_tb_operator_target' (resolve.c), which was committed in r150856
for PR 37435.
More information about the Gcc-bugs
mailing list