Lines Matching defs:to_lvalue_ref

314 consteval const A &to_lvalue_ref(const A &&a) {
322 { A k = to_lvalue_ref(A()); }// expected-error {{is not a constant expression}}
324 { A k = to_lvalue_ref(A().ret_a()); } // expected-error {{is not a constant expression}}
333 { int k = const_a_ref(to_lvalue_ref(A().ret_a())); }
334 { int k = const_a_ref(to_lvalue_ref(std::move(a))); }
336 { int k = by_value_a(to_lvalue_ref(std::move(a))); }
371 consteval const A &to_lvalue_ref(const A &&a) {
380 { A k = to_lvalue_ref(A()); } // expected-error {{is not a constant expression}}
382 { A k = to_lvalue_ref(A().ret_a()); }
384 // expected-error@-2 {{'alloc::to_lvalue_ref' is not a constant expression}}
395 { int k = const_a_ref(to_lvalue_ref(A().ret_a())); }
396 { int k = const_a_ref(to_lvalue_ref(std::move(a))); }
398 { int k = by_value_a(to_lvalue_ref(static_cast<const A&&>(a))); }
582 constexpr const Copy &to_lvalue_ref(const Copy &&a) {
594 { Copy c(to_lvalue_ref((Copy(&f_eval)))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}
595 { Copy c(to_lvalue_ref(std::move(C))); }
596 { Copy c(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}
601 { Copy c = Copy(to_lvalue_ref(Copy(&f_eval))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}
602 { Copy c = Copy(to_lvalue_ref(std::move(C))); }
603 { Copy c = Copy(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}
608 { Copy c; c = Copy(to_lvalue_ref(Copy(&f_eval))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}
609 { Copy c; c = Copy(to_lvalue_ref(std::move(C))); }
610 { Copy c; c = Copy(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}
615 { Copy* c; c = new Copy(to_lvalue_ref(Copy(&f_eval))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}
616 { Copy* c; c = new Copy(to_lvalue_ref(std::move(C))); }
617 { Copy* c; c = new Copy(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a constant expression}} expected-note {{to a consteval}}