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

[XLC++ 9.0/AIX] failure to apply template conversion operator

    XMLWordPrintableJSON

Details

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

    • Compiler Error

    Description

      $ cat t.cpp && xlC -c t.cpp 
      
      struct A 
      { 
          template <class T> 
          operator T& (); 
      }; 
      
      int main () 
      { 
          A a; 
          (int)a; 
          return 0; 
      } 
      "t.cpp", line 11.10: 1540-0216 (S) An expression of type "A" cannot be converted to type "int". 
      $ 
      

      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: