You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int b = allocate(); // expected-note 2{{undefined function 'allocate' cannot be used in a constant expression}} \
340
+
// expected-error {{call to consteval function 'GH66324::allocate' is not a constant expression}} \
341
+
// expected-note {{declared here}}
342
+
};
343
+
344
+
template <typename>
345
+
structvector : _Vector_base {
346
+
constexprvector()
347
+
// expected-note@-1 {{'vector' is an immediate constructor because its body contains a call to a consteval function 'allocate' and that call is not a constant expression}}
348
+
: _Vector_base{} {} // expected-note {{in the default initializer of 'b'}}
349
+
};
350
+
351
+
vector<void> v{};
352
+
// expected-error@-1 {{call to immediate function 'GH66324::vector<void>::vector' is not a constant expression}}
0 commit comments