Commit 144d302e by Paolo Carlini Committed by Paolo Carlini

re PR c++/59991 (Recursive lambda capture in C++1y constexpr function template…

re PR c++/59991 (Recursive lambda capture in C++1y constexpr function template causes internal compiler error)

2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59991
	* g++.dg/cpp0x/lambda/lambda-ice23.C: New.

From-SVN: r253339
parent 7838c9a8
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59991
* g++.dg/cpp0x/lambda/lambda-ice23.C: New.
2017-10-02 Tom de Vries <tom@codesourcery.com>
* gcc.c-torture/compile/pr82337.c: Add
......
// PR c++/59991
// { dg-do compile { target c++11 } }
template <typename T>
constexpr int r(T x) {
auto f = [r,x]() { return r(x); }; // { dg-error "incomplete type" }
return 0;
}
int main()
{
r(0);
}
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