summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/scope3.C
blob: 3ff7f54ad599c4241c696c1df40b37e6b8de10a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do assemble  }
// GROUPS passed scoping
// This is fixed when NEW_CLASS_SCOPING is on.

template<class T>
class ArrayG {
public:
    ArrayG();
protected:
    const unsigned INITIAL;
    T* array;			 
};

template<class T>
ArrayG<T>::ArrayG():
array(new T[INITIAL])
{ }

struct X {
    struct Correspondence {
	int i;
    };

    void fill(ArrayG<Correspondence>& a);
};