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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: External
    • Labels:
      None
    • Environment:

      XLC++/AIX

    • Severity:
      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

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

                Dates

                • Created:
                  Updated: