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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
scope3.C
blob
3ff7f54ad599c4241c696c1df40b37e6b8de10a5
1
// { dg-do assemble }
2
// GROUPS passed scoping
3
// This is fixed when NEW_CLASS_SCOPING is on.
4
5
template<class T>
6
class ArrayG {
7
public:
8
ArrayG();
9
protected:
10
const unsigned INITIAL;
11
T* array;
12
};
13
14
template<class T>
15
ArrayG<T>::ArrayG():
16
array(new T[INITIAL])
17
{ }
18
19
struct X {
20
struct Correspondence {
21
int i;
22
};
23
24
void fill(ArrayG<Correspondence>& a);
25
};