[Bug c++/45490] Confusing error message for local type arguments

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 1 21:36:00 GMT 2010



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-09-01 21:36 -------
On the trunk we get:

t.cc: In function ‘void foo()’:
t.cc:9:39: error: no matching function for call to ‘distance(foo()::my_iter,
foo()::my_iter)’
/home/apinski/local-gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_iterator_base_funcs.h:111:59:
note: candidate is: template<class _InputIterator> typename
std::iterator_traits::difference_type std::distance(_InputIterator,
_InputIterator)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45490



More information about the Gcc-bugs mailing list