comparison gcc/testsuite/g++.dg/cpp2a/lambda-generic7.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
18:1830386684a0 19: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 }