[Bug c++/60420] [C++11] Bogus "error:=?UTF-8?Q?=20=E2=80=98const=E2=80=99=20qualifiers=20cannot=20be=20applied=20to=20=E2=80=98int=26=E2=80=99?=" with lambda

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 12 11:37:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60420

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In case a correct reduced reproducer would be:

struct MyIter
{
  int& operator*();
};

template<typename Iterator>
void foo(Iterator begin)
{
  auto x = [](const decltype(*begin)) { };
}

template void foo<MyIter>(MyIter);



More information about the Gcc-bugs mailing list