This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60420] [C++11] Bogus "error: âconstâ qualifiers cannot be applied to âint&â" with lambda


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]