Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr78890-1.C
blob: 6fccc4fbe0df69fdd58bbe602c1ed99b3681da8d [
file
] [
log
] [
blame
]
// PR c++/78890
// { dg-do compile { target c++11 } }
int
main
()
{
union
{
int
a
;
int
&
b
=
a
;
// { dg-error "may not have reference type" }
};
a
=
1
;
auto
c
=
b
+
1
;
}