blob: 0159330d79c00e66ae475b9b552fce07cf44895b [file] [log] [blame]
// DR 1510, PR c++/60420
// { dg-do compile { target c++11 } }
struct MyIter
{
int& operator*();
};
void foo(MyIter begin)
{
auto x = [](const decltype(*begin)) { };
}
template<typename Iterator>
void bar(Iterator begin)
{
auto x = [](const decltype(*begin)) { };
}
template void bar<MyIter>(MyIter);