☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
libstdc++-v3
/
testsuite
/
20_util
/
tuple
/
make_from_tuple
/
dangling_ref.cc
☽
☼
libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc
code
plain
raw
1
// { dg-do compile { target c++17 } }
2
#include <tuple>
3
std::tuple<short> f();
4
auto t = std::make_from_tuple<const int&>(f()); // { dg-error "here" }
5
// { dg-error "static assertion failed" "" { target *-*-* } 0 }