This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60420] [C++11] Bogus "error: âconstâ qualifiers cannot be applied to âint&â" with lambda
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Nov 2014 11:37:51 +0000
- Subject: [Bug c++/60420] [C++11] Bogus "error: âconstâ qualifiers cannot be applied to âint&â" with lambda
- Auto-submitted: auto-generated
- References: <bug-60420-4 at http dot gcc dot gnu dot org/bugzilla/>
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);