[LLVMbugs] [Bug 11377] SFINAE errors don't say what went wrong in the template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 14 13:12:43 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=11377
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution| |FIXED
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-05-14 15:12:43 CDT ---
This was fixed in r156297. We now produce:
huh2.cpp:23:2: error: no matching function for call to 'test_sequence'
test_sequence ( v, lessThan10, v.begin () + 5 );
^~~~~~~~~~~~~
huh2.cpp:7:6: note: candidate template ignored: substitution failure [with
Container = std::vector<int, std::allocator<int>>,
Predicate = bool (*)(int)]: no type named 'interator' in
'std::vector<int, std::allocator<int>>'
void test_sequence ( Container &v, Predicate comp, typename
Container::interator point ) {
^
~~~~~~~~~
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list