Debian Codegraph @

gcc/testsuite/g++.dg/concepts/auto8.C

raw
1 // PR c++/110065
2 // { dg-do compile { target c++17 } }
3
4 template <typename>
5 inline constexpr bool t = false;
6
7 int
8 f ()
9 {
10 return t<auto(&)(const int*) -> auto&>; // { dg-error "template argument" }
11 }
12
13 void
14 g ()
15 {
16 t<auto(&)(const int*) -> auto&>; // { dg-error "template argument" }
17 }