[llvm-bugs] [Bug 26556] New: Broken template resolution
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Feb 9 15:07:09 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26556
Bug ID: 26556
Summary: Broken template resolution
Product: clang
Version: 3.7
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: mattreecebentley at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
With the following function declaration within a class:
template <class r_colony_allocator_type, bool r_is_const, class distance_type>
void advance(colony_reverse_iterator<r_colony_allocator_type, r_is_const> &it,
distance_type distance)
And the following call:
colony<int *>::reverse_iterator r_iterator = p_colony.rbegin();
p_colony.advance(r_iterator, 50);
Clang gives the following error:
note: candidate template ignored: could not match
'plf::colony<int *, std::allocator<int *> >::colony_reverse_iterator' against
'plf::colony<int *, std::allocator<int *> >::colony_reverse_iterator'
void advance(colony_reverse_iterator<r_colony_allocator_type,
r_is_const> &it, distance_type distance)
--
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/20160209/afb10558/attachment.html>
More information about the llvm-bugs
mailing list