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
/
typename13.C
blob
385834b959d33e3f69a6f6a6841d7af6bc1589a6
1
// { dg-do assemble }
2
// { dg-options "-fpermissive" }
3
4
template <class T>
5
struct B
6
{
7
typedef int I;
8
};
9
10
11
template <class T>
12
struct D : public B<T>
13
{
14
void f();
15
};
16
17
18
template <class T>
19
void D<T>::f()
20
{
21
I(); // { dg-warning "" }
22
}
23
24
25
template <>
26
struct B<int>
27
{
28
void I();
29
};
30
31
32
int main()
33
{
34
D<int> di;
35
di.f();
36
}