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:

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,, and find no such constraint.


1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.