Lines Matching defs:derp
669 consteval static T x() { return 5; } // expected-note {{non-constexpr constructor 'derp' cannot be used in a constant expression}}
671 Bar() : a(x()) {} // expected-error {{call to consteval function 'issue_55601::Bar<issue_55601::derp>::x' is not a constant expression}}
672 // expected-error@-1 {{call to consteval function 'issue_55601::derp::operator int' is not a constant expression}}
674 // expected-note@-3 {{non-literal type 'issue_55601::derp' cannot be used in a constant expression}}
681 struct derp {
683 derp(int); // expected-note {{declared here}}
686 Bar<derp> a; // expected-note {{in instantiation of member function 'issue_55601::Bar<issue_55601::derp>::Bar' requested here}}
719 struct derp {
723 constexpr derp d;
727 consteval const derp * operator->() const { return &d; }