Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
ref1.C
blob: 36368ded018e990b2db2a56758c9ee13afaa636e [
file
] [
log
] [
blame
]
// PR c++/20332
struct
bar
{};
void
foo1
()
{
bar
&
b
=
bar
();
// { dg-error "rvalue" }
}
void
foo
(
bar
&
b
=
bar
())
{}
// { dg-error "rvalue" }