Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr85706.C

raw
1 // PR c++/85706
2 // { dg-do compile { target c++17 } }
3 // { dg-additional-options "-fconcepts" }
4
5 template<class T> struct S {
6 S(T);
7 };
8
9 template<class = void>
10 auto f() -> decltype(S(42)); // error