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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
typename7.C
blob
6b4ef223bd60115cccd06078154922c89cad6ec0
1
// Test for implicit typename
2
// Build don't link:
3
// Special g++ Options:
4
5
template <class T>
6
struct A {
7
protected:
8
typedef struct B { } B;
9
};
10
11
template <class T>
12
struct C { };
13
14
template <class T>
15
struct D : public A <C <T> > {
16
void f ()
17
{
18
B* new_entries = (B *) 0; // WARNING - implicit typename
19
}
20
};