Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-float3.C

raw
1 // PR c++/110809
2 // { dg-do compile { target c++20 } }
3
4 template<class, double> struct A { };
5
6 template<class T> void f(A<T, 1.0>);
7 template<class T> void f(A<T, 2.0>);
8
9 int main() {
10 f(A<int, 1.0>{});
11 f(A<int, 1.1>{}); // { dg-error "no match" }
12 }