Hi,

I only have a simple comment about the testcase:

On 27/02/2018 17:42, Håkon Sandsmark wrote:
+++ gcc/testsuite/g++.dg/cpp1y/pr71546.C
@@ -0,0 +1,11 @@
+// PR c++/71546
+// { dg-do compile { target c++14 } }
+// { dg-options "" }
+
+#include <memory>
+
+int main()
+{
+  int x1;
+  [e = std::make_shared <int> (), x1]() {};
+}
Instead of including the whole <memory>, shall we use something like:

namespace std { template<typename> struct make_shared { }; }

int main()
{
  int x1;
  [e = std::make_shared <int> (), x1]() {};
}

???

Thanks,
Paolo

Reply via email to