[Bug c++/44122] Confusing error: cannot convert 'T*' to 'T*'

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 15 00:16:00 GMT 2010



------- Comment #1 from manu at gcc dot gnu dot org  2010-05-15 00:16 -------
Have you tried with Clang?

I think Clang prints typedefs using 'aka', which is not very clear.

error: incompatible type assigning 'vector<Real>', expected 'std::string' (aka
'class std::basic_string<char>')

I would suggest:

t.cc:8: error: cannot convert 'bar::Py_ssize_t*' ('int*') to 'Py_ssize_t*'
('long*') for 1st argument to 'int foo(Py_ssize_t*)'

Do we have typedef unwrapping?


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-15 00:16:20
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44122



More information about the Gcc-bugs mailing list