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++.robertl
/
eb24.C
blob
5e2a3ee45b3a9067834c96f519b51a68e07eb0b7
1
// { dg-do assemble }
2
#include <iostream>
3
4
template < class T >
5
class X
6
{
7
protected:
8
9
union {
10
int x;
11
double y;
12
};
13
};
14
15
template < class T >
16
class Y : public X<T>
17
{
18
public:
19
20
using X<T>::x;
21
22
void f () { std::cout << this->x << std::endl; }
23
};