Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29284 Discussions

Type-bound defined assignment question [answered]

Neil_Carlson
Beginner
365 Views

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

0 Kudos
0 Replies
Reply