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
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
implicit14.C
blob
8a56244631b08f95a30e02de333b82b33489c34a
1
// PR c++/54506
2
// { dg-do compile { target c++11 } }
3
4
template <class T>
5
struct A
6
{
7
A() {}
8
9
A(A const volatile &&) = delete;
10
A &operator =(A const volatile &&) = delete;
11
12
template <class U> A(A<U> &&) {}
13
template <class U> A &operator =(A<U> &&) { return *this; }
14
};
15
16
struct B
17
{
18
A<int> a;
19
B() = default;
20
};
21
22
int main()
23
{
24
B b = B();
25
b = B();
26
}