Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-local3.C
blob: 76d4b55c416c126afc908e7d5c2230c05f814338 [
file
] [
log
] [
blame
]
// PR c++/64647
// { dg-do compile { target c++14 } }
template
<
typename
T
>
constexpr
T foo
(
T t
)
{
T tt
=
t
;
return
tt
;
}
struct
X
{
X
()
{
}
};
int
main
()
{
X x
;
foo
(
x
);
}