Fixes are available
November 2009 PTF for XL C/C++ for AIX, V10.1
October 2010 PTF for XL C/C++ for AIX, V10.1
May 2012 PTF for XL C/C++ for AIX, V10.1
January 2013 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 18 (July 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 19 (October 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 21 (October 2015 PTF) for 10.1
August 2009 PTF for XL C/C++ for AIX, V10.1
March 2010 PTF for XL C/C++ for AIX, V10.1
April 2010 PTF for XL C/C++ for AIX, V10.1
June 2010 PTF for XL C/C++ for AIX, V10.1
May 2011 PTF for XL C/C++ for AIX, V10.1
October 2011 PTF for XL C/C++ for AIX, V10.1
February 2012 PTF for XL C/C++ for AIX, V10.1
September 2012 PTF for XL C/C++ for AIX, V10.1
May 2009 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 20 (October 2014 PTF) for 10.1
APAR status
Closed as program error.
Error description
The following test case produces an Internal Compiler Error in xlCentry when -qsmp is used. ===== COMPILE COMMAND: xlC_r -qsmp test.cpp ===== TESTCASE: $ cat test.cpp #include <vector> void iterator_example() { std::vector<int> vec(23); std::vector<int>::iterator it; #pragma omp parallel for default(none) shared(vec) for (it = vec.begin(); it < vec.end(); it++) { // do work with *it } } ===== ACTUAL OUTPUT: xlC_r: 1501-230 (S) Internal compiler error; please contact your Service Representative. For more information visit: http://www.ibm.com/support/docview.wss?uid=swg21110810 ===== EXPECTED OUTPUT: Should not produce an Internal Compiler Error.
Local fix
Use the compiler option -qnoinline as a workaround.
Problem summary
OpenMP users whose parallel for statement contains an empty lexical block are affected by this issue. When trying to parallelize a for statement with null lexical block the compiler will produce an internal compiler error.
Problem conclusion
When adding statements to a null lexical block the statements have to be appended during transformation so that an internal trees gets hooked up correctly.
Temporary fix
Comments
APAR Information
APAR number
IZ45369
Reported component name
XL C++ AIX
Reported component ID
5724U8100
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-03-06
Closed date
2009-05-21
Last modified date
2009-06-03
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++ AIX
Fixed component ID
5724U8100
Applicable component levels
Document Information
Modified date:
03 June 2009