Home | History | Annotate | Download | only in dcl.constexpr

Lines Matching defs:int

13   NonLiteral(int) {} // expected-note 2{{here}}
14 operator int() const { return 0; }
18 operator int() const { return 0; }
22 virtual int ImplicitlyVirtual() const;
27 constexpr int ImplicitlyVirtual() const { return 0; }
30 constexpr int a = ImplicitVirtualFromDependentBase<S>().ImplicitlyVirtual(); // expected-error {{constant expression}} expected-note {{cannot evaluate virtual function call}}
31 constexpr int b = ImplicitVirtualFromDependentBase<T>().ImplicitlyVirtual(); // ok
32 constexpr int c = ImplicitVirtualFromDependentBase<S>().ImplicitVirtualFromDependentBase<S>::ImplicitlyVirtual();
37 constexpr int d = ConstexprMember<int>().F(); // ok
38 constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{constant expression}} expected-note {{non-literal type 'const NonLiteral' cannot be used in a constant expression}}
44 constexpr ConstexprCtor<int> f2() { return 0; } // ok
46 constexpr ConstexprCtor<int, NonLiteral> f4() { return { 0, 0 }; } // expected-error {{never produces a constant expression}} expected-note {{non-constexpr constructor 'NonLiteral}}