Commit dcba286a by Marek Polacek Committed by Marek Polacek

re PR c++/60366 (ICE with self-invoking lambdas)

	PR c++/60366
	* g++.dg/cpp0x/lambda/lambda-ice32.C: New test.

From-SVN: r272092
parent 5834bdc3
2019-06-09 Marek Polacek <polacek@redhat.com>
PR c++/60366
* g++.dg/cpp0x/lambda/lambda-ice32.C: New test.
019-06-09 Paul Thomas <pault@gcc.gnu.org>
PR fortran/89365
......
// PR c++/60366
// { dg-do compile { target c++11 } }
void
fn ()
{
auto f = [](const struct __lambda0 &self) { self(self); }; // { dg-error "" }
f(f); // { dg-error "" }
}
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