Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-55432.C
blob: 56b09bda0172d0b594764761189228a7ce3c8dbe [
file
] [
log
] [
blame
]
// PR c++/55432
// { dg-do compile { target c++11 } }
struct
tag_t
{}
tag
{};
constexpr
tag_t
const
&
pass
(
tag_t
&
t
)
{
return
t
;
}
struct
S
{
constexpr
S
(
tag_t
)
{};
};
struct
T
{
S mem
;
T
(
tag_t
&
args
)
:
mem
(
pass
(
args
))
{}
};
T t
(
tag
);