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
This commit is contained in:
Paolo Carlini 2015-11-24 18:30:02 +00:00 committed by Paolo Carlini
parent 660f3dc7dd
commit 4ade0d6913
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,11 @@
// { 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; });
}