Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
}