repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
array9.C
blob
f3e8335c943fb2a102fb6b79041d69ff058e7e8f
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
}