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
[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
typedef18.C
blob
8ea3c736a0a26f24a557d773b4538d27c5ac01f0
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin PR c++/40007
3
// { dg-do compile }
4
5
template<typename T>
6
struct x
7
{
8
protected:
9
typedef int type;
10
};
11
12
template<typename T>
13
struct y : public x<T>
14
{
15
typename x<T>::type z;
16
};
17
18
template<>
19
struct y<void> : public x<void>
20
{
21
typedef x<void>::type z;
22
};
23
24
template class y<int>;