Commit a0445a5f by Paolo Carlini Committed by Paolo Carlini

re PR c++/82022 (constexpr lambda in template context: expression ‘<lambda>’ is…

re PR c++/82022 (constexpr lambda in template context: expression ‘<lambda>’ is not a constant expression)

2018-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/82022
	* g++.dg/cpp1z/constexpr-lambda20.C: New.

From-SVN: r258241
parent e095eec1
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
......
// 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>();
}
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