PR c++/89419
* g++.dg/cpp1y/lambda-generic-89419.C: New test.
From-SVN: r269159
* 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
--- /dev/null
+// 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; };
+}