Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
);