Lines Matching refs:constexpr
12 constexpr A(X<1>) {} in A()
14 explicit constexpr A(X<3>) {} // expected-note 2{{here}} in A()
19 constexpr A a0c { X<0>{} }; // expected-error {{must be initialized by a constant expression}} expe…
20 constexpr A a0ic = { X<0>{} }; // expected-error {{must be initialized by a constant expression}} e…
24 constexpr A a1c { X<1>{} };
25 constexpr A a1ic = { X<1>{} };
29 constexpr A a2c { X<2>{} }; // expected-error {{must be initialized by a constant expression}} expe…
30 constexpr A a2ic = { X<2>{} }; // expected-error {{constructor is explicit}}
34 constexpr A a3c { X<3>{} };
35 constexpr A a3ic = { X<3>{} }; // expected-error {{constructor is explicit}}
44 constexpr B b0c { X<0>{} }; // expected-error {{must be initialized by a constant expression}} expe…
45 constexpr B b0ic = { X<0>{} }; // expected-error {{must be initialized by a constant expression}} e…
49 constexpr B b1c { X<1>{} };
50 constexpr B b1ic = { X<1>{} };
54 constexpr B b2c { X<2>{} }; // expected-error {{must be initialized by a constant expression}} expe…
55 constexpr B b2ic = { X<2>{} }; // expected-error {{constructor is explicit}}
59 constexpr B b3c { X<3>{} };
60 constexpr B b3ic = { X<3>{} }; // expected-error {{constructor is explicit}}
65 struct NonConstexpr { NonConstexpr(); constexpr NonConstexpr(int); }; // expected-note {{here}}
66 struct Constexpr { constexpr Constexpr(int) {} }; in Constexpr()
69 constexpr BothNonLiteral bothNL{42}; // expected-error {{constexpr variable cannot have non-literal…
72 constexpr BothNonConstexpr bothNC{42}; // expected-error {{must be initialized by a constant expres…
76 constexpr ConstexprEval(int a, const char *p) : k(p[a]) {} in ConstexprEval()
85 constexpr ConstexprEval3 ce{4, "foobar"};
91 constexpr TemplateCtors() {} in TemplateCtors()
102 constexpr UsingTemplateCtors(X<0>, X<0>) {} in UsingTemplateCtors()
103 constexpr UsingTemplateCtors(X<1>, X<1>) {} in UsingTemplateCtors()
104 constexpr UsingTemplateCtors(X<2>, X<2>) {} in UsingTemplateCtors()
106 template<int = 0> constexpr UsingTemplateCtors(int) {} // expected-note {{candidate}} in UsingTemplateCtors()
107 template<typename T = void> constexpr UsingTemplateCtors(int, int) {} in UsingTemplateCtors()
108 template<typename T, typename U> constexpr UsingTemplateCtors(int, int, int) {} in UsingTemplateCtors()
112 constexpr UsingTemplateCtors uct1{ X<0>{}, X<0>{} };
113 constexpr UsingTemplateCtors uct2{ X<0>{}, Y<0>{} }; // expected-error {{must be initialized by a c…
114 constexpr UsingTemplateCtors uct3{ X<1>{}, X<0>{} }; // expected-error {{must be initialized by a c…
115 constexpr UsingTemplateCtors uct4{ X<1>{}, X<1>{} };
116 constexpr UsingTemplateCtors uct5{ X<2>{}, 0 }; // expected-error {{must be initialized by a consta…
117 constexpr UsingTemplateCtors uct6{ X<2>{}, X<2>{} };
119 constexpr UsingTemplateCtors utc7{ 0 }; // expected-error {{ambiguous}}
120 constexpr UsingTemplateCtors utc8{ 0, 0 }; // ok
121 constexpr UsingTemplateCtors utc9{ 0, 0, 0 }; // expected-error {{must be initialized by a constant…