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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.dg
/
parse
/
missing-template1.C
blob
40f8502be376c899f8ee6f2a0542e73cc0f05340
1
// PR c++/8736
2
// Origin: Peter Kolloch <pkolloch@gmx.ne>
3
// { dg-do compile }
4
5
template <typename T> struct A
6
{
7
template <typename U> struct B
8
{
9
typedef int X;
10
};
11
};
12
13
template <typename T> void foo()
14
{
15
typedef typename A<T>::B<T>::X Y; // { dg-error "" }
16
}
17
18
void bar()
19
{
20
foo<int>();
21
}