IBM Support

IZ95618: THE CALL DOES NOT MATCH ANY PARAMETER LIST ERR

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The following testcase reproduces the error message:
    
    ========================b.cpp===========================
    
    
    template<typename Other, int Rows=Other::Rows> struct EI
    {
      typedef int ResultType;
    };
    
    struct Matrix
    {
      enum {
        Rows = 1
      };
    };
    
    struct Transform
    {
      template<typename OtherDerived>
      const typename EI<OtherDerived>::ResultType
      operator * (const OtherDerived &other);
    };
    
    void test()
    {
       Transform t0;
       Matrix m0;
       t0 * m0;
    }
    
    ========================b.cpp===========================
    
    
    Compile b.cpp file:
    
    xlc -c b.cpp
    "b.cpp", line 24.7: 1540-0218 (S) The call does not match any
    parameter list for "operator*".
    "b.cpp", line 17.3: 1540-1283 (I) "template <class OtherDerived>
    Transform::operator*(const OtherDerived &)" is not a viable
    candidate.
    "b.cpp", line 24.7: 1540-0130 (I) "Other" is not declared.
    "b.cpp", line 24.7: 1540-0700 (I) The previous message was
    produced while processing "operator*".
    

Local fix

  • N/A
    

Problem summary

  • For default template arguments, template argument substitution
    only substitutes the last part of a qualified name.
    

Problem conclusion

  • Changing name substitution routine to take the entire qualified
    name into account.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ95618

  • Reported component name

    XLC C++ AIX

  • Reported component ID

    5724S7100

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-02-23

  • Closed date

    2011-02-23

  • Last modified date

    2011-02-23

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

    LI75628

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

Fix information

  • Fixed component name

    XLC C++ AIX

  • Fixed component ID

    5724S7100

Applicable component levels

  • R900 PSN U841975

       UP06/09/13 C



Document information

More support for: XL C/C++

Software version: 9.0

Reference #: IZ95618

Modified date: 23 February 2011


Translate this page: