Lines Matching defs:lifetime
250 namespace lifetime {
253 constexpr int bad() { int &&n = dead(); n = 1; return n; } // expected-note {{assignment to temporary whose lifetime has ended}}
886 // cxx14_20-note@-1 {{read of object outside its lifetime}}
897 *p = 123; // expected-note {{assignment to object outside its lifetime}}
914 *p[n] = 0; // expected-note 3{{assignment to object outside its lifetime}}
917 static_assert(h(0) == 0, ""); // ok, lifetime-extended
930 // its lifetime.
931 ++*q; // expected-note {{increment of object outside its lifetime}}
959 (void)+r; // expected-note {{outside its lifetime}}
1122 int x = x = 3; // cxx14-note {{outside its lifetime}}
1241 // The lifetime of 'n' begins at the initialization, not before.
1242 constexpr int n = ++const_cast<int&>(n); // expected-error {{constant expression}} expected-note {{increment of object outside its lifetime}}