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
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
deleted8.C
blob
a16f9fd199e3322fa48e9748cb72d86f1b285a35
1
// PR c++/56633
2
// { dg-do compile { target c++11 } }
3
4
struct A {
5
A(int) { }
6
A(const A&) = delete;
7
};
8
9
struct Test1 {
10
A value2{0}; // no problem here
11
};
12
13
template <typename T> // T is not used
14
struct Test2 {
15
A value2{0}; // fails to compile
16
};
17
18
int main() {
19
Test1 test;
20
Test2<int> test2;
21
return 0;
22
}