annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 // PR c++/94507 - ICE-on-invalid with lambda template.
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 // { dg-do compile { target c++20 } }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 struct S { };
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 template<typename T, typename U>
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 auto foo(T, U)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 [] <> () { foo (S{}, S{}); }; // { dg-error "expected" }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 }