blob: 6b28824d1fa4ef48f8018adc115e9258ac42c01c (
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
26
27
28
29
30
31
|
// { dg-do assemble }
// Origin: Loring Holden <lsh@cs.brown.edu>
template <class V>
class _vec3d
{
public:
double _x, _y;
};
class Wvec : public _vec3d<int> { };
template <class T>
class TDI {
public:
T &get();
};
template <class T>
class hashvar {
public :
T _val;
TDI<T> *val() const;
T get() const { return true ? val()->get() : _val; }
};
int
main() {
hashvar<Wvec> CONSTRAINT_DIR;
CONSTRAINT_DIR.get();
}
|