Lines Matching +defs:S +defs:l
182 struct S { struct
183 static constexpr int k = 42;
184 static constexpr int f(int n) { return n * k + 2; } in f()
272 struct S { int x, y; } s; struct
434 struct S { struct
585 template<bool B, typename T> struct S : T { struct
586 int k;
587 void f() { in f()
657 struct S { struct
658 int a, b;
659 const S *p;
660 double d;
661 const char *q;
663 constexpr S(int n, const S *p) : a(5), b(n), p(p), d(n), q("hello") {} in S() function
805 struct S { struct
806 constexpr S(int n) : k(2*n + 1) {} in S() function
807 constexpr operator int() const { return k; } in operator int()
808 constexpr operator T() const { return T(k); } in operator T()
809 int k;
845 struct S { struct
846 constexpr S() {} in S() function
864 …"); // expected-error {{constant expression}} expected-note {{in call to '&Temporaries::S()->f()'}}
946 struct S { struct
947 constexpr S(int m, int n, int (S::*pf)() const, int S::*pn) : in S() function
949 constexpr S() : m(), n(), pf(&S::f), pn(&S::n) {} in S() function
951 constexpr int f() const { return this->*pn; } in f()
954 int m, n;
955 int (S::*pf)() const;
956 int S::*pn;
1078 friend constexpr complex operator+(const complex &l, const complex &r) { in operator +()
1081 friend constexpr complex operator-(const complex &l, const complex &r) { in operator -()
1084 friend constexpr complex operator*(const complex &l, const complex &r) { in operator *()
1087 friend constexpr bool operator==(const complex &l, const complex &r) { in operator ==()
1167 struct S { struct
1168 int j : f(0); // expected-error {{constant expression}} expected-note {{in call to 'f(0)'}}
1169 …{constant expression}} expected-note {{temporary created here}} expected-note {{in call to 'g(0)'}}
1170 int l : n3; // expected-error {{constant expression}} expected-note {{read of non-const variable}} member
1171 …m : t.n; // expected-error {{constant expression}} expected-note {{read of non-constexpr variable}}
1193 struct S { int n; }; struct
1238 struct S { _Atomic(double) d; }; struct
1284 struct S { struct
1285 struct { // expected-warning {{GNU extension}}
1295 union {
1299 constexpr S(int a, int b, int d, int e) : a(a), b(b), d(d), e(e) {} in S() function
1300 constexpr S(int c, int d, int f) : c(c), d(d), f(f) {} in S() function
1348 int l = ++d1.y; variable
1425 constexpr const int l = k; // expected-error {{constant expression}} expected-note {{read of tempor… variable
1514 struct S { R r; }; // expected-note 3{{here}} struct
1549 struct S : U { struct
1560 struct S { struct
1561 constexpr S(int a0) : m(a0) {} in S() function
1562 constexpr S() : m(6) {} in S() function
1563 int m;
1610 constexpr T get(T (&a)[S], size_t k) { in get()
1674 struct S {}; struct
1802 struct S { struct
1804 int &s;
1805 int t;
1806 constexpr S() : r(0), s(get(0)), t(r) {} // expected-warning {{temporary}} in S() function
1807 …constexpr S(int) : r(0), s(get(0)), t(s) {} // expected-warning {{temporary}} expected-note {{read… in S() function