Fixes are available
XL C for AIX Fix Pack 16 (July 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 16 (July 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 17 (November 2016 Update) for 12.1
XL C for AIX Fix Pack 17 (November 2016 Update) for 12.1
XL C for AIX Fix Pack 18 (February 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 18 (February 2017 Update) for 12.1
XL C for AIX Fix Pack 19 (August 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 19 (August 2017 Update) for 12.1
XL C for AIX Fix Pack 20 (March 2018 Update) for 12.1
XL C/C++ for AIX Fix Pack 20 (March 2018 Update) for 12.1
XL C/C++ for AIX Fix Pack 21 (January 2019 Update) for 12.1
XL C for AIX Fix Pack 21 (January 2019 Update) for 12.1
APAR status
Closed as program error.
Error description
A typedef name is interfering with a parameter variable that has the same name in a function definition, causing an invalid compiler error message. === TEST CASE === typedef char YYY; void foo(void (*YYY)(void*)) {}; $ xlc -c test2.c "test.c", line 2.17: 1506-275 (S) Unexpected text YYY encountered. "test.c", line 2.10: 1506-172 (S) Parameter type list for function foo contains parameters without identifiers. $
Local fix
Problem summary
PROBLEM DESCRIPTION: A function pointer type passed as a function parameter is encountering a name conflict with a typedef. USERS AFFECTED: Users with function pointer variable names used as function parameters with the same name as a typedef.
Problem conclusion
The issue has been fixed, and the conflict and error message no longer occur.
Temporary fix
Comments
APAR Information
APAR number
IV84525
Reported component name
XL C/C++ FOR AI
Reported component ID
5725C7200
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-05-09
Closed date
2016-06-21
Last modified date
2016-06-21
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 FOR AIX
Fixed component ID
5725C7100
Applicable component levels
RC10 PSY
UP
Document Information
Modified date:
14 September 2021