1 // Core Issue #1331 (const mismatch with defaulted copy constructor)
2 // { dg-do compile { target c++11 } }
3 
4 struct M
5 {
6   M(M&);
7 };
8 
9 struct W
10 {
11   W();
12   W(const W&);
13   M m;
14 };
15 
16 // Not first declaration.
17 W::W(const W&) = default; // { dg-error "binding" }
18 W w;
19