Type-bound defined assignment question [answered]

Type-bound defined assignment question [answered]

I wish I could delete the original post but I can't, so here's the answer:  The constraint is indeed correct (C468).

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I'm exercising the new 13.0 compiler on some existing, 'working' code and it complains about this bit of code from the declaration of a derived type:

contains
procedure, nopass :: copy
generic :: assignment(=) => copy

The error message is "error #8420: If generic-spec is OPERATOR or ASSIGNMENT, each of its specific bindings must have a passed object dummy argument."  Can someone point to the part of the standard where this constraint appears?  I've looked in  sections  4.5.5, 7.2.1.4, 12.4.3.4.3 and find no such constraint.

-Neil

1 条帖子 / 0 全新
如需更全面地了解编译器优化,请参阅优化注意事项