repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-copy1.C
blob
70d3d7192227dfee5fe1a0232c099b618a726811
1
// PR c++/55017
2
// { dg-do compile { target c++11 } }
3
4
struct S { // { dg-error "rvalue ref" }
5
int&& rr;
6
S(int&& rr) : rr(static_cast<int&&>(rr)) {}
7
};
8
9
S s1(13);
10
S s2 = s1; // { dg-error "deleted" }