Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp2a/lambda-generic7.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 // PR c++/94507 - ICE-on-invalid with lambda template. | |
2 // { dg-do compile { target c++20 } } | |
3 | |
4 struct S { }; | |
5 | |
6 template<typename T, typename U> | |
7 auto foo(T, U) | |
8 { | |
9 [] <> () { foo (S{}, S{}); }; // { dg-error "expected" } | |
10 } |