IBM Support

IJ05348: -D_LARGE_FILES CAUSING COMPILE TIME ERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The compiler issues a compile time message when compiling the
    provided test case:
    
    ===== COMPILE COMMAND:
    xlC -c -D_LARGE_FILES j.cpp
    
    ===== TESTCASE:
    $ cat j.cpp
    #include <locale>
    
    bool fred(char c, std::locale loc)
    {
        return std::isspace(c, loc);
    }
    $
    
    ===== ACTUAL OUTPUT:
    xlC -c -D_LARGE_FILES j.cpp
    "j.cpp", line 5.24: 1540-0215 (S) The wrong number of arguments
    has been specified for "isspace(int)".
    $
    
    
    ===== EXPECTED OUTPUT:
    xlC -c -D_LARGE_FILES j.cpp
    $
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users who invoke std::isspace() with two arguments and compile
    with -D_LARGE_FILES are affected by this issue
    
    PROBLEM DESCRIPTION: When -D_LARGE_FILES is specified,
    isspace(int) is in the std:: namespace and isspace(int, const
    locale&)
    is in the std::_LFS_ON:: namespace.  As a result, for
    invocation std::isspace(c, loc), isspace(int) in the std::
    namespace is picked up and thus the compiler issues the error.
    

Problem conclusion

  • The problem has been fixed
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ05348

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-04-02

  • Closed date

    2018-12-21

  • Last modified date

    2018-12-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IJ08174

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RD10 PSY

       UP

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1"}]

Document Information

Modified date:
24 August 2021