Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp1y/lambda-init15a.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/71837 |
2 // { dg-do compile { target c++14 } } | |
3 | |
4 template < typename ... Ts > void f (Ts ... args) | |
5 { | |
6 [ts (args ...)] { return ts; } (); // { dg-error "" } | |
7 } | |
8 | |
9 int main () | |
10 { | |
11 f (); // { dg-message "required" } | |
12 f (1,2); // { dg-message "required" } | |
13 return 0; | |
14 } |