comparison gcc/testsuite/g++.dg/concepts/abbrev5.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++/92187
2 // { dg-do compile { target concepts } }
3
4 template <typename>
5 concept C = false;
6
7 C auto f(auto)
8 {
9 return 42; // { dg-error "deduced return type" }
10 }
11
12 void foo()
13 {
14 f(0);
15 }