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
/
defaulted37.C
blob
1926f2eb4cc403eec67c80b8f237c7bfefbc0de4
1
// DR 1402
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
A& operator=(A&&);
7
};
8
9
struct B: virtual A { B& operator=(B&&) = default; }; // { dg-warning "virtual base" }
10
struct C: virtual A { }; // { dg-warning "virtual base" }
11
12
int main()
13
{
14
B b1, b2;
15
b2 = static_cast<B&&>(b1);
16
17
C c1, c2;
18
c2 = static_cast<C&&>(c1);
19
}