summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice21.C
blob: 34354bd0915cef6001c50dee96fcae1ba7502c3b (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/78648
// { dg-do compile { target c++11 } }

template <typename F> void e(F) {}

template <int> void bar() {
  e([](const void) {}); // { dg-error "invalid use" }
}

void baz() { bar<1>; }