Debian Codegraph @

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

raw
1 // PR c++/94830
2 // { dg-do compile { target concepts } }
3
4 template<typename T, typename R>
5 concept c = __is_same(T, R); // { dg-message "with T = int; R = char" }
6
7 template<typename T, typename R>
8 requires c<T,R>
9 void foo() { }
10
11 void bar()
12 {
13 foo<int, char>(); // { dg-error "no match" }
14 }