summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C
blob: 620c9e3dc953c4c2932e36b10ff43b8b2dd81d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do compile { target c++14 } }
// PR 94426 ICE mangling lambda
// { dg-options {-flto -O2} }
// { dg-require-effective-target lto }

template <bool> using Void = void;

template <typename U> bool Init (U) {return true;}
template <typename> bool VAR = Init ([] {});

template <typename T>
Void<false && VAR<T>> Foo (T)
{}

void q ()
{
  Foo ([] {});
}