Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-678

[XLC++ 9.0/AIX] unsats on class template member function taking function with typedef'd parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • External
    • None
    • XLC++/AIX

    • Incorrect Behavior

    Description

      $ cat t.cpp && xlC -qversion && xlC t.cpp
      template <class T>
      struct A
      {
      typedef T U;
      void apply(void f(const U&)) const;
      };

      template <class T>
      void A<T>::apply(void f(const U&)) const { }

      struct S { };
      void bar (const S&) { };

      int main ()
      {
      A<S>().apply(bar);
      return 0;
      }

      IBM XL C/C++ Enterprise Edition for AIX, V9.0
      Version: 09.00.0000.0000
      ld: 0711-317 ERROR: Undefined symbol: .A<S>::apply(void(const S&)) const
      ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
      $

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vitek Travis Vitek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: