Fixes are available
September 2012 Update for XL Fortran for Linux, V14.1
December 2012 Update for XL Fortran for Linux, V14.1
April 2013 Update for XL Fortran for Linux, V14.1
XL Fortran for Linux Fix Pack 4 (October 2013 Update) for 14.1
XL Fortran for Linux Fix Pack 5 (December 2013 Update) for 14.1
XL Fortran for Linux Fix Pack 6 (February 2014 Update) for 14.1
XL Fortran for Linux Fix Pack 7 (May 2014 Update) for 14.1
APAR status
Closed as program error.
Error description
When compiling a generic binding similar to the example below, the compiler is incorrectly interpreting the binding as ambiguous. ===== EXAMPLE CODE ===== type my_type contains procedure, pass(val) :: my_sub_1 procedure, pass(val) :: my_sub_2 generic :: intr => my_sub_1, my_sub_2 end type ===== ERROR MESSAGE ===== 1514-714 (S) Procedures my_sub_2 and my_sub_1 must not appear in the same generic interface. The dummy argument that disambiguates the procedures by argument keyword appears earlier in the argument list than the dummy argument that disambiguates by position.
Local fix
Removing the PASS object dummy arguments and converting into a generic interface block does not consider the interface ambiguous, and does not encounter the error message.
Problem summary
PROBLEM DESCRIPTION: When checking generic bindings for ambiguity, if the bindings contains a pair of PASS specific bindings where one specific binding: 1. Contains fewer non-optional dummy arguments than the other specific binding, and 2. The passed object dummy argument in this binding occurs earlier in the argument list than the PASS object dummy argument in the other specific binding. XL Fortran incorrectly interprets the generic binding as ambiguous. This problem does not affect generic bindings involving NOPASS specific bindings. It also does not affect generic interface blocks. USERS AFFECTED: User of XL Fortran using generic bindings involving passed object dummy arguments.
Problem conclusion
The problem has been fixed.
Temporary fix
Comments
APAR Information
APAR number
LI76994
Reported component name
XL FORTRAN LINU
Reported component ID
5725C7500
Reported release
E10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-08-28
Closed date
2012-08-28
Last modified date
2012-08-28
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
XL FORTRAN LINU
Fixed component ID
5725C7500
Applicable component levels
RE10 PSN IV21657
UP06/09/13
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSAT4T","label":"XL Fortran for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"14.1","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
16 October 2021