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
Merge reload-branch up to revision 101000
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
cond4.C
blob
6b28824d1fa4ef48f8018adc115e9258ac42c01c
1
// { dg-do assemble }
2
// Origin: Loring Holden <lsh@cs.brown.edu>
3
4
template <class V>
5
class _vec3d
6
{
7
public:
8
double _x, _y;
9
};
10
11
class Wvec : public _vec3d<int> { };
12
13
template <class T>
14
class TDI {
15
public:
16
T &get();
17
};
18
19
template <class T>
20
class hashvar {
21
public :
22
T _val;
23
TDI<T> *val() const;
24
T get() const { return true ? val()->get() : _val; }
25
};
26
27
int
28
main() {
29
hashvar<Wvec> CONSTRAINT_DIR;
30
CONSTRAINT_DIR.get();
31
}