Sign in
gnu
/
gcc
/
fcea8c4d9fbb64259ccf9c6d9abda3633e68f7b2
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
reinterpret_cast2.C
blob: 59f39324c7c8d57782acf847685c6aa9e1092cd8 [
file
] [
log
] [
blame
]
// PR c++/89391
// { dg-do compile { target c++11 } }
struct
S
{
};
void
foo
()
{
auto
a
=
reinterpret_cast
<
S
&&>(
foo
());
// { dg-error "invalid cast of an rvalue expression of type 'void' to type" }
}