IBM Support

IJ08174: -D_LARGE_FILES CAUSING COMPILE TIME ERROR

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

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

    IJ08174

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D13

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-08-02

  • Closed date

    2018-08-02

  • Last modified date

    2018-08-02

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

    IJ05348

  • 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



Document information

More support for: XL C for AIX
Compiler

Software version: D13

Reference #: IJ08174

Modified date: 02 August 2018