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

                 Key: STDCXX-679
                 URL: https://issues.apache.org/jira/browse/STDCXX-679
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: XLC++/AIX
            Reporter: Travis Vitek


$ 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". 
$ 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to