Commit 3aab3d37 by Marek Polacek Committed by Marek Polacek

re PR c++/89419 (ICE in is_normal_capture_proxy starting with r253601)

	PR c++/89419
	* g++.dg/cpp1y/lambda-generic-89419.C: New test.

From-SVN: r269159
parent 28a19c5b
......@@ -4,6 +4,9 @@
* g++.dg/cpp0x/noexcept34.C: New test.
* g++.dg/cpp0x/noexcept35.C: New test.
PR c++/89419
* g++.dg/cpp1y/lambda-generic-89419.C: New test.
2019-02-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/88117
......
// PR c++/89419
// { dg-do compile { target c++14 } }
struct A;
struct B {
struct C { C (); C (C &); } b;
};
struct D { A operator* (); };
struct A {
template <typename T> void foo (T x) { x (this); }
};
struct E {
auto bar () { return e; }
D e;
};
struct F { B f; int g; };
int
main ()
{
E e;
auto f = *e.bar ();
auto i = [&] { F g; g.g = 1; auto h = [&](auto) { g.g = 0; }; f.foo (h); return g; };
}
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