From 4ade0d6913012f0ff8ef31aee18005a5c7a11761 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 24 Nov 2015 18:30:02 +0000 Subject: [PATCH] re PR c++/68278 (internal compiler error with C++14 polymorphic lambda and type alias) 2015-11-24 Paolo Carlini PR c++/68278 * g++.dg/cpp1y/pr68278.C: New. From-SVN: r230828 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1y/pr68278.C | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1y/pr68278.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ab038201b2b..65a14e18823 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-11-24 Paolo Carlini + + PR c++/68278 + * g++.dg/cpp1y/pr68278.C: New. + 2015-11-24 Paolo Carlini PR c++/68388 diff --git a/gcc/testsuite/g++.dg/cpp1y/pr68278.C b/gcc/testsuite/g++.dg/cpp1y/pr68278.C new file mode 100644 index 00000000000..0336222ba5e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr68278.C @@ -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; }); +} -- 2.30.2