repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted60.C
blob
ad025236ccefc282db1c6b97307a033906aa3496
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;