Commit 4ade0d69 by Paolo Carlini Committed by Paolo Carlini

re PR c++/68278 (internal compiler error with C++14 polymorphic lambda and type alias)

2015-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/68278
	* g++.dg/cpp1y/pr68278.C: New.

From-SVN: r230828
parent 660f3dc7
2015-11-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/68278
* g++.dg/cpp1y/pr68278.C: New.
2015-11-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/68388
* g++.dg/cpp1y/pr68388.C: New.
......
// { dg-do compile { target c++14 } }
int main()
{
auto f = []() { return 1; };
auto q = [=](auto g) {
using type = decltype(g(f()));
};
q([](int x){ return x; });
}
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