[llvm-bugs] [Bug 35758] New: clang-cl error : no matching function for call to 'get'
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 27 03:58:43 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35758
Bug ID: 35758
Summary: clang-cl error : no matching function for call to
'get'
Product: clang
Version: 5.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: dvirtz at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Created attachment 19607
--> https://bugs.llvm.org/attachment.cgi?id=19607&action=edit
preprocessed
Works for other compilers: https://godbolt.org/g/qABFqf
>type Source.cpp
#include <tuple>
struct S : std::tuple<int> {};
int main() {
S s;
return std::get<0>(s);
}
>"c:\Program Files\LLVM\msbuild-bin\cl.exe" -c Source.cpp
Source.cpp(7,10): error: no matching function for call to 'get'
return std::get<0>(s);
^~~~~~~~~~~
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(572,3):
note: candidate template ignored: could not match 'pair<type-parameter-0-1,
type-parameter-0-2>'
against 'S'
get(pair<_Ty1, _Ty2>& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(596,3):
note: candidate template ignored: could not match 'pair<type-parameter-0-1,
type-parameter-0-2>'
against 'S'
get(const pair<_Ty1, _Ty2>& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(620,3):
note: candidate template ignored: could not match 'pair<type-parameter-0-1,
type-parameter-0-2>'
against 'S'
get(pair<_Ty1, _Ty2>&& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(644,3):
note: candidate template ignored: could not match 'pair<type-parameter-0-1,
type-parameter-0-2>'
against 'S'
get(const pair<_Ty1, _Ty2>&& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(785,3): note:
candidate template ignored: failed template argument deduction
get(tuple<_Types...>& _Tuple) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(794,3): note:
candidate template ignored: failed template argument deduction
get(const tuple<_Types...>& _Tuple) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(803,3): note:
candidate template ignored: failed template argument deduction
get(tuple<_Types...>&& _Tuple) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(813,3): note:
candidate template ignored: failed template argument deduction
get(const tuple<_Types...>&& _Tuple) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(927,28):
note: candidate template ignored: could not match 'array<type-parameter-0-1,
_Size>' against 'S'
_NODISCARD constexpr _Ty& get(array<_Ty, _Size>& _Arr) _NOEXCEPT;
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(932,34):
note: candidate template ignored: could not match 'array<type-parameter-0-1,
_Size>' against 'S'
_NODISCARD constexpr const _Ty& get(const array<_Ty, _Size>& _Arr)
_NOEXCEPT;
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(937,29):
note: candidate template ignored: could not match 'array<type-parameter-0-1,
_Size>' against 'S'
_NODISCARD constexpr _Ty&& get(array<_Ty, _Size>&& _Arr) _NOEXCEPT;
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(942,35):
note: candidate template ignored: could not match 'array<type-parameter-0-1,
_Size>' against 'S'
_NODISCARD constexpr const _Ty&& get(const array<_Ty, _Size>&& _Arr)
_NOEXCEPT;
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(580,29):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty1'
_NODISCARD constexpr _Ty1& get(pair<_Ty1, _Ty2>& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(587,29):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty2'
_NODISCARD constexpr _Ty2& get(pair<_Ty1, _Ty2>& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(604,35):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty1'
_NODISCARD constexpr const _Ty1& get(const pair<_Ty1, _Ty2>& _Pr)
_NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(611,35):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty2'
_NODISCARD constexpr const _Ty2& get(const pair<_Ty1, _Ty2>& _Pr)
_NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(628,30):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty1'
_NODISCARD constexpr _Ty1&& get(pair<_Ty1, _Ty2>&& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(635,30):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty2'
_NODISCARD constexpr _Ty2&& get(pair<_Ty1, _Ty2>&& _Pr) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(652,36):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty1'
_NODISCARD constexpr const _Ty1&& get(const pair<_Ty1, _Ty2>&& _Pr)
_NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\utility(659,36):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty2'
_NODISCARD constexpr const _Ty2&& get(const pair<_Ty1, _Ty2>&& _Pr)
_NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(823,28):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty'
_NODISCARD constexpr _Ty& get(tuple<_Types...>& _Tuple) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(831,34):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty'
_NODISCARD constexpr const _Ty& get(const tuple<_Types...>& _Tuple)
_NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(839,29):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty'
_NODISCARD constexpr _Ty&& get(tuple<_Types...>&& _Tuple) _NOEXCEPT
^
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\Community\VC\Tools\MSVC\14.12.25907\include\tuple(847,35):
note: candidate template ignored: invalid explicitly-specified argument for
template parameter
'_Ty'
_NODISCARD constexpr const _Ty&& get(const tuple<_Types...>&& _Tuple)
_NOEXCEPT
^
1 error generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171227/48211e3a/attachment-0001.html>
More information about the llvm-bugs
mailing list