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: unassignedclangb...@nondot.org
          Reporter: mattreecebent...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to