Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr71979.C
blob: e67eed111ac25e6ea9f9768e2da75266167b9467 [
file
] [
log
] [
blame
]
// PR c++/71979
// { dg-do compile { target c++11 } }
struct
A
{
A
&
operator
=
(
A
&);
};
struct
B
:
A
{};
// { dg-error "cannot bind" }
void
foo
()
{
B b
;
b
=
B
();
// { dg-error "use of deleted" }
}