OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/18389
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array9.C
1
// PR c++/18429
2
3
int subtrees = 4;
4
template< class T >
5
struct Tree {
6
Tree* L[subtrees]; // { dg-error "" }
7
Tree* R[subtrees]; // { dg-error "" }
8
~Tree()
9
{
10
delete [] L[0]; // { dg-error "" }
11
delete [] R[0]; // { dg-error "" }
12
}
13
};
14
15
void f()
16
{
17
Tree<int> t;
18
}