Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted51.C
blob: 0a7d308707cbeaf3cc0027c1dd9dcca1d84e4219 [
file
] [
log
] [
blame
]
// PR c++/85067
// { dg-do compile { target c++11 } }
template
<int>
struct
A
{
A
();
A
(
volatile
A
&)
=
default
;
// { dg-error "defaulted" }
};
struct
B
{
A
<
0
>
a
;
};
B b
;