Commit 666a1c32 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/80194 (ICE with local constant referenced by a lambda expression)

	PR c++/80194
	* g++.dg/cpp1y/pr80194.C: New test.

From-SVN: r253658
parent 241dbd9d
2017-10-11 Jakub Jelinek <jakub@redhat.com>
PR c++/80194
* g++.dg/cpp1y/pr80194.C: New test.
2017-10-11 Qing Zhao <qing.zhao@oracle.com>
PR target/81422
......
// PR c++/80194
// { dg-do compile { target c++14 } }
int fn1 ();
template <class Fn>
void
fn2 (Fn &&fn)
{
fn (42);
}
void fn2 ()
{
auto const x = fn1 ();
fn2 ([&](auto) { x; });
}
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