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

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #7 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to janus from comment #6)
> To add to this discussion, here are two examples from the F08 standard
> (section C.9.6):
> 
> 
> module fruits
[...]
> end
> 
> 
> gfortran correctly rejects the first one and allows the second (both with
> and without the patch in comment 2).
> 
> However, ifort 12.1 seems to accept both, which clearly violates the F08
> standard. I also tried flags like -std03 and -std08, without any effect. Are
> there other flags to force a more strict adherence to the standard?
> 
> Is anyone able to check other compilers?

xlf 14.1:
"pr59720a.f90", line 20.4: 1514-699 (S) Procedure "s6b" must have a nonoptional
dummy argument that corresponds by position in the argument list to a dummy
argument not present in procedure "s6a", present and type incompatible, present
with different kind type parameters, or present with a different rank.

NAG Fortran Compiler Release 5.3.2(951)
Error: pr59720a.f90, line 40: Ambiguous specific names S6B and S6A in generic
BAD6
Errors in declarations, no further processing for FRUITS

pgfortran 13.10 accepts it.

Reply via email to