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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
typedef26.C
blob
7f4bc6b5ceaf1cb6dafd2ae77609750636f0cc6b
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin: PR c++/42225
3
// { dg-do compile }
4
5
struct A
6
{
7
typedef int TI;
8
};
9
10
template<class T0>
11
struct S0
12
{
13
int i;
14
};
15
16
template<class _T, int>
17
struct S1
18
{
19
typedef _T T;
20
typedef typename T::TI TTI;
21
typedef S0<TTI> TT0;
22
typedef S0<typename T::TI> TT1;
23
};
24
25
template<class T>
26
void
27
foo(const T&)
28
{
29
typedef typename T::TI TTI;
30
typedef S0<TTI> TT1;
31
typedef S0<typename T::TI> TT2;
32
}
33
34
int
35
main()
36
{
37
A a;
38
foo (a);
39
}
40