[
https://issues.apache.org/jira/browse/STDCXX-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Travis Vitek updated STDCXX-679:
--------------------------------
Description:
{noformat}
$ 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".
$
{noformat}
was:
$ 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".
$
removed formatting from description.
> [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
>
> {noformat}
> $ 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".
> $
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.