Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}