Debian Codegraph @

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

raw
1 // PR c++/100589
2 // { dg-do compile { target c++20 } }
3
4 template<class T>
5 concept false_concept = false;
6
7 false_concept auto f() -> int; // { dg-error "'f' \[^\r\n\]* trailing return type has constrained 'auto'" }
8
9 using type = false_concept auto() -> int; // { dg-error "invalid use of constrained 'auto' type" }