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
usingB::B; // expected-note {{in call to 'B<int>(0)'}}
512
+
structC : TemplateCtor {
513
+
usingTemplateCtor::TemplateCtor; // expected-note {{in call to 'TemplateCtor<int>(0)'}}
514
514
};
515
515
516
516
C c(0); // expected-note{{in implicit initialization for inherited constructor of 'C'}}
517
-
// expected-error@-1 {{call to immediate function 'GH112677::C::B' is not a constant expression}}
517
+
// expected-error@-1 {{call to immediate function 'GH112677::C::TemplateCtor' is not a constant expression}}
518
+
519
+
structSimpleCtor { constexprSimpleCtor(int) {}};
520
+
structD : SimpleCtor {
521
+
int y = 10;
522
+
ConstEval x = y; // expected-note {{undefined constructor 'ConstEval'}}
523
+
using SimpleCtor::SimpleCtor;
524
+
//expected-note@-1 {{'SimpleCtor' is an immediate constructor because the default initializer of 'x' contains a call to a consteval constructor 'ConstEval' and that call is not a constant expression}}
525
+
};
526
+
527
+
D d(0); // expected-note {{in implicit initialization for inherited constructor of 'D'}}
528
+
// expected-error@-1 {{call to immediate function 'GH112677::D::SimpleCtor' is not a constant expression}}
0 commit comments