Commit 968e56bf by Paolo Carlini Committed by Paolo Carlini

re PR c++/78018 ([C++14] "internal compiler error: Segmentation fault" with templates and lambdas)

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

	PR c++/78018
	* g++.dg/cpp1y/lambda-generic-78018.C: New.

From-SVN: r253430
parent a1440fa8
2017-10-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/78018
* g++.dg/cpp1y/lambda-generic-78018.C: New.
2017-10-04 Paolo Carlini <paolo.carlini@oracle.com>
Andrew Pinski <apinski@cavium.com>
PR c++/71946
......
// PR c++/78018
// { dg-do compile { target c++14 } }
struct A
{
void f1();
template <typename F>
void f2(F f);
template<typename T>
void f3(T t);
};
struct B
{
template<typename L>
void f(L) { }
};
void A::f1()
{
f2([&] (auto t) { f3(t); } );
}
template <typename F>
void A::f2(F f)
{
B b;
f(b);
}
template<typename T>
void A::f3(T t)
{
}
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