IBM Support

IY69299: TEMPLATE WARNING WHEN CHECKING VIABLE CANDIDATE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When the compiler checks which version of the function call
    to use, a warning message is generated on a candidate function.
    .
      template <typename T2, bool A2>
      Array& operator=( const Array<T2,A2>& x )
      {
        return *this;
      }
    
      template<typename T2>
      Array& operator=( const T2& x )
      {
        return *this;
      }
    .
    The wanring message looks like 1540-724 (W) The non-type
    template argument "1" of type "bool" has wrapped.
    

Local fix

Problem summary

  •  same as submitter's text
    

Problem conclusion

  • Users Affected: Users of multiple template functions with the
      same name with non-type template parameters.
    Problem Description: We were incorrectly generating a warning
      for a conversion on a non0type template parameters during
      selection of viable candidates for overload resolution.
    Workaround: To work around the problem, simply ignore the
      message as it is a warning and will not prevent successful
      compilation
    Expected Errors:
      "ut1.cpp", line 54.13: 1540-0724 (W) The non-type template
      argument "1" of type "bool" has wrapped.
    Problem Conclusion: During selection of viable template
      candidate functions as part of overload resolution, the
      compiler may attemp to instantiate a template function with
      synthesized types to see if it is a viable candidate. Warnings
      should not be generated until the actual candidate is
      instantiated with real types.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IY69299

  • Reported component name

    XL C++ FOR AIX

  • Reported component ID

    5724I1100

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2005-03-18

  • Closed date

    2005-03-28

  • Last modified date

    2007-08-02

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

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

    LI70888 LI71001

Fix information

  • Fixed component name

    XL C++ FOR AIX

  • Fixed component ID

    5724I1100

Applicable component levels

  • R700 PSN U812862

       UP07/08/02 I 1000

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
20 August 2024