Commit fbb0add7 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/78523 (ICE on valid lambda code with implicit capture)

	PR c++/78523
	* g++.dg/cpp1y/pr78523.C: New test.

From-SVN: r253659
parent 666a1c32
2017-10-11 Jakub Jelinek <jakub@redhat.com>
PR c++/78523
* g++.dg/cpp1y/pr78523.C: New test.
PR c++/80194
* g++.dg/cpp1y/pr80194.C: New test.
......
// 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment