Fixes are available
October 2009 Update for XL C/C++ for Linux, V10.1
June 2011 Update for XL C/C++ for Linux, V10.1
XL C/C++ for Linux Fix Pack 8 (January 2014 Update) for 10.1
August 2010 Update for XL C/C++ for Linux, V10.1
January 2011 Update for XL C/C++ for Linux, V10.1
January 2012 Update for XL C/C++ for Linux, V10.1
July 2012 Update for XL C/C++ for Linux, V10.1
APAR status
Closed as program error.
Error description
The compiler is not recognizing logic operators (and, bitand, bitor, compl, not, or, xor) as formal keywords, thus causing warnings when trying to disable them via the -qnokeyword option. If a variable has the same name as an operator, an error is generated. This is affecting the -fno-operator-names option when invoking the compiler with gxlc++, as this option is translated into: -q nokeyword=and -qnokeyword=bitand -qnokeyword=bitor -qnokeyword=compl -qnokeyword=not -qnokeyword=or -qnokeyword=xor ===== TEST CASE ===== $ cat b.cpp int and; $ xlC -c -qnokeyword=and b.cpp "b.cpp", line 1.5: 1540-0063 (S) The text "&&" is unexpected. 1540-2124 (W) The string "and" in "-qnokeyword=and" is not a valid keyword. The option is ignored. $
Local fix
Avoid usage of logic operators as names.
Problem summary
USERS AFFECTED: Using compiler option -qnokeyword=and:or:xor:bitand:bitor:compl:not or gxlC with -fno-operator-names, which maps to these options. PROBLEM DESCRIPTION: The digraph names cannot be disabled by -qnokeyword as of XL C/C++ V10.1.
Problem conclusion
The keyword processing has been corrected to support the digraph names.
Temporary fix
Comments
APAR Information
APAR number
LI75080
Reported component name
XL C/C++ RHEL52
Reported component ID
5724U8310
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-12-01
Closed date
2009-12-01
Last modified date
2009-12-01
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 C/C++ RHEL52
Fixed component ID
5724U8310
Applicable component levels
RA10 PSN IZ56260
UP06/09/13
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
14 October 2021