1 // { dg-options "-std=c++1y" }
4 // The following error is emitted without context. I'm not
5 // certain why that would be the case. It comes as a result
6 // of failing the declaration of S::f0().
8 // cc1plus: error: expected ';' at end of member declaration
12 template<typename T, typename U>
13 bool C() const { return false; } // Not a concept!
16 static concept bool D() { return __is_same_as(T, int); }
18 template<typename T, typename U>
19 static concept bool E() { return __is_same_as(T, U); }
23 void f2(Base::E<double> x) { }
27 void f0(Base::C<float> x) { } // { dg-error "expected|type" }
29 void f2(Base::E<T> x) { }
33 f1('a'); // { dg-error "matching" }
34 f2(0); // { dg-error "matching" }
37 s.f1('a'); // { dg-error "matching" }
38 s.f2('a'); // { dg-error "matching" }