comparison gcc/testsuite/g++.dg/cpp2a/concepts-conv1.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 // { dg-do compile { target concepts } }
2
3 template <class T> concept False = false;
4
5 template <class T>
6 struct A
7 {
8 explicit operator bool ();
9 explicit operator bool () requires False<T>;
10 };
11
12 int main()
13 {
14 int i { A<int>() }; // { dg-error "" }
15 }