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:
parent
660f3dc7dd
commit
4ade0d6913
@ -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
|
||||
|
11
gcc/testsuite/g++.dg/cpp1y/pr68278.C
Normal file
11
gcc/testsuite/g++.dg/cpp1y/pr68278.C
Normal 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; });
|
||||
}
|
Loading…
Reference in New Issue
Block a user