Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp1y/lambda-generic-dep.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
25 | 25 |
26 #include <utility> | 26 #include <utility> |
27 | 27 |
28 int main() | 28 int main() |
29 { | 29 { |
30 auto f = [] <typename T> (T const& s) mutable { // { dg-warning "does not support lambda templates" } | 30 auto f = [] <typename T> (T const& s) mutable { // { dg-warning "lambda templates are only available with" "" { target c++17_down } } |
31 typename T::N x; | 31 typename T::N x; |
32 return x.test (); | 32 return x.test (); |
33 }; | 33 }; |
34 auto g = [] (auto const& s) { | 34 auto g = [] (auto const& s) { |
35 typename std::decay<decltype (s)>::type::N x; | 35 typename std::decay<decltype (s)>::type::N x; |