2018-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/82022
* g++.dg/cpp1z/constexpr-lambda20.C: New.
From-SVN: r258241
+2018-03-05 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/82022
+ * g++.dg/cpp1z/constexpr-lambda20.C: New.
+
2018-03-03 Harald Anlauf <anlauf@gmx.de>
PR fortran/71085
--- /dev/null
+// PR c++/82022
+// { dg-options -std=c++17 }
+
+template <class T>
+void f2()
+{
+ constexpr bool r = []() constexpr { return false; }();
+ if constexpr (r);
+ if constexpr ([]() constexpr { return false; }());
+}
+
+int main()
+{
+ if constexpr ([]() constexpr { return false; }());
+ f2<int>();
+}