stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-679) [XLC++ 9.0/AIX] failure to apply template conversion operator
Date Wed, 30 Apr 2008 19:53:55 GMT

     [ 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.


Mime
View raw message