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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
typename19.C
blob
5733c9b5b2faecbd8e967eecf98f10837388f832
1
// { dg-do run }
2
// { dg-options "" }
3
// Origin: Mark Mitchell <mark@codesourcery.com>
4
5
template <class T>
6
struct O {
7
typedef char X;
8
};
9
10
template <class T>
11
struct S {
12
typedef double X;
13
14
template <class U>
15
struct I : public O<U> {
16
static X x;
17
};
18
};
19
20
template <class T>
21
template <class U>
22
typename S<T>::X S<T>::I<U>::x;
23
24
int main()
25
{
26
return sizeof (S<int>::I<double>::x) == 1;
27
}