aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1y/pr78523.C
blob: 31e0cc886fa2aa47b56101a20116461c9e1e291f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/78523
// { dg-do compile { target c++14 } }

int bar ();

void
foo ()
{
  const int t = bar ();
  auto f = [=] (auto x) { return t; };
  f (0);
}