aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice8.C
blob: 00078d53b7b75a1efbb03d0fb964e5da05ae2fcd (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/51422
// { dg-do compile { target c++11 } }

template<typename> struct A {};

void foo()
{
  [i] { A<decltype(i)>(); };   // { dg-error "not declared|invalid" }
  [i] { A<decltype(i)>(); };   // { dg-error "invalid" }
}