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