[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-apl] SVN 585 ... new clang errors
From: |
Fausto Saporito |
Subject: |
[Bug-apl] SVN 585 ... new clang errors |
Date: |
Wed, 1 Apr 2015 10:33:56 +0200 |
Hello,
I updated to svn 585, and I got a different error in this case:
Bif_F12_FORMAT.cc:682:28: error: no matching function for call to 'strchr'
const char * dot = strchr(data_buf, '.');
^~~~~~
/usr/include/string.h:76:7: note: candidate function not viable: no
known conversion from '__DynArray<char>' to
'const char *' for 1st argument
char *strchr(const char *, int);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:98:46:
note:
candidate function not viable: no known conversion from
'__DynArray<char>' to 'char *' for 1st argument
inline _LIBCPP_INLINE_VISIBILITY char* strchr( char* __s,
int __c) {return ::strchr(__s, __c);}
^
Bif_F12_FORMAT.cc:683:37: error: invalid operands to binary expression
('const char *' and '__DynArray<char>')
const int ilen = dot ? (dot - data_buf) : strlen(data_buf);
~~~ ^ ~~~~~~~~
./Common.hh:354:1: note: candidate function not viable: no known
conversion from 'const char *' to 'Function_PC'
for 1st argument
operator -(Function_PC pc, int offset)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:622:1:
note:
candidate template ignored: could not match
'reverse_iterator<type-parameter-0-0>' against 'const char *'
operator-(const reverse_iterator<_Iter1>& __x, const
reverse_iterator<_Iter2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1017:1:
note:
candidate template ignored: could not match
'move_iterator<type-parameter-0-0>' against 'const char *'
operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1369:1:
note:
candidate template ignored: could not match
'__wrap_iter<type-parameter-0-0>' against 'const char *'
operator-(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>&
__y) _NOEXCEPT
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:486:11:
note:
candidate template ignored: could not match
'fpos<type-parameter-0-0>' against 'const char *'
streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:558:1:
note:
candidate template ignored: could not match
'complex<type-parameter-0-0>' against 'const char *'
operator-(const complex<_Tp>& __x, const complex<_Tp>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:568:1:
note:
candidate template ignored: could not match
'complex<type-parameter-0-0>' against 'const char *'
operator-(const complex<_Tp>& __x, const _Tp& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:578:1:
note:
candidate template ignored: could not match 'complex' against '__DynArray'
operator-(const _Tp& __x, const complex<_Tp>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:737:1:
note:
candidate function template not viable: requires single argument
'__x', but 2 arguments were provided
operator-(const complex<_Tp>& __x)
^
Bif_F12_FORMAT.cc:683:51: error: no matching function for call to 'strlen'
const int ilen = dot ? (dot - data_buf) : strlen(data_buf);
^~~~~~
/usr/include/string.h:82:9: note: candidate function not viable: no
known conversion from '__DynArray<char>' to
'const char *' for 1st argument
size_t strlen(const char *);
^
1 warning and 3 errors generated.
Please could you check it ?
thanks,
Fausto
- [Bug-apl] SVN 585 ... new clang errors,
Fausto Saporito <=