[Bug fortran/59720] [OOP] class/extends, multiple generic assignment

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Wed Jan 8 20:38:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59720

--- Comment #9 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to janus from comment #8)
> (In reply to Harald Anlauf from comment #7)
> 
> Thanks for checking, Harald. So XLF and NAG agree with gfortran on comment
> 6. That's the easy part (since the interpretation of these cases is
> explicitly given in the standard). Apparently ifort and pgfortran are buggy
> in this area.
> 
> Could you also check what XLF and NAG report on comment 1 (which is a
> somewhat more questionable case)?

Here we go:

% xlf2008 pr59720.f90
** kleiner   === End of Compilation 1 ===
"pr59720.f90", line 42.44: 1514-699 (S) Procedure "ass_gf" must have a
nonoptional dummy argument that corresponds by position in the argument list to
a dummy argument not present in procedure "ass_en", present and type
incompatible, present with different kind type parameters, or present with a
different rank.

% nagfor pr59720.f90
NAG Fortran Compiler Release 5.3.2(951)
Error: pr59720.f90, line 65: Ambiguous specific type-bound procedures ASSIGN2
and ASSIGN for type-bound generic ASSIGNMENT(=) in type MYTYPE
Errors in declarations, no further processing for GROSSER


Apparently both agree with gfortran ;-)



More information about the Gcc-bugs mailing list