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++.pt
/
typename9.C
blob
d619b583fc42b9f1c2148173543951edeade5d6f
1
// { dg-do run }
2
// { dg-options "-w" }
3
// Test to make sure that implicit typename doesn't break name binding rules.
4
5
typedef double A;
6
template<class T> class B {
7
typedef char A;
8
};
9
template<class T> struct X : B<T> {
10
A a;
11
};
12
13
int main()
14
{
15
X<char*> x;
16
return sizeof (x.a) != sizeof (double);
17
}