Lines Matching refs:X
6 template<int> struct X {}; struct
14 A(X<0>) {} // expected-note 4{{here}} in A()
15 constexpr A(X<1>) {} in A()
16 explicit A(X<2>) {} // expected-note 6{{here}} in A()
17 explicit constexpr A(X<3>) {} // expected-note 4{{here}} in A()
20 A a0 { X<0>{} };
21 A a0i = { X<0>{} };
22 constexpr A a0c { X<0>{} }; // expected-error {{must be initialized by a constant expression}} expe…
23 constexpr A a0ic = { X<0>{} }; // expected-error {{must be initialized by a constant expression}} e…
25 A a1 { X<1>{} };
26 A a1i = { X<1>{} };
27 constexpr A a1c { X<1>{} };
28 constexpr A a1ic = { X<1>{} };
30 A a2 { X<2>{} };
31 A a2i = { X<2>{} }; // expected-error {{constructor is explicit}}
32 constexpr A a2c { X<2>{} }; // expected-error {{must be initialized by a constant expression}} expe…
33 constexpr A a2ic = { X<2>{} }; // expected-error {{constructor is explicit}}
35 A a3 { X<3>{} };
36 A a3i = { X<3>{} }; // expected-error {{constructor is explicit}}
37 constexpr A a3c { X<3>{} };
38 constexpr A a3ic = { X<3>{} }; // expected-error {{constructor is explicit}}
45 B b0 { X<0>{} };
46 B b0i = { X<0>{} };
47 constexpr B b0c { X<0>{} }; // expected-error {{must be initialized by a constant expression}} expe…
48 constexpr B b0ic = { X<0>{} }; // expected-error {{must be initialized by a constant expression}} e…
50 B b1 { X<1>{} };
51 B b1i = { X<1>{} };
52 constexpr B b1c { X<1>{} };
53 constexpr B b1ic = { X<1>{} };
55 B b2 { X<2>{} };
56 B b2i = { X<2>{} }; // expected-error {{constructor is explicit}}
57 constexpr B b2c { X<2>{} }; // expected-error {{must be initialized by a constant expression}} expe…
58 constexpr B b2ic = { X<2>{} }; // expected-error {{constructor is explicit}}
60 B b3 { X<3>{} };
61 B b3i = { X<3>{} }; // expected-error {{constructor is explicit}}
62 constexpr B b3c { X<3>{} };
63 constexpr B b3ic = { X<3>{} }; // expected-error {{constructor is explicit}}
100 …template<template<int> class T> TemplateCtors(X<0>, T<0>); // expected-note {{here}} expected-note…
101 …template<int N> TemplateCtors(X<1>, X<N>); // expected-note {{here}} expected-note {{candidate inh…
102 …template<typename T> TemplateCtors(X<2>, T); // expected-note {{here}} expected-note {{candidate i…
110 constexpr UsingTemplateCtors(X<0>, X<0>) {} // expected-note {{not viable}} in UsingTemplateCtors()
111 constexpr UsingTemplateCtors(X<1>, X<1>) {} // expected-note {{not viable}} in UsingTemplateCtors()
112 constexpr UsingTemplateCtors(X<2>, X<2>) {} // expected-note {{not viable}} in UsingTemplateCtors()
120 constexpr UsingTemplateCtors uct1{ X<0>{}, X<0>{} };
121 constexpr UsingTemplateCtors uct2{ X<0>{}, Y<0>{} }; // expected-error {{must be initialized by a c…
122 constexpr UsingTemplateCtors uct3{ X<1>{}, X<0>{} }; // expected-error {{must be initialized by a c…
123 constexpr UsingTemplateCtors uct4{ X<1>{}, X<1>{} };
124 constexpr UsingTemplateCtors uct5{ X<2>{}, 0 }; // expected-error {{must be initialized by a consta…
125 constexpr UsingTemplateCtors uct6{ X<2>{}, X<2>{} };