language: C++ 4.7.2 (gcc-4.7.2)
date: 585 days 3 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
template < template <typename> class T> 
void foo() {
 
   T<int> x;
}
 
template<typename T> 
struct A
{
   //...
};
 
int main()
{
   foo<A>();
}
prog.cpp: In function ‘void foo() [with T = A]’:
prog.cpp:16:   instantiated from here
prog.cpp:5: warning: unused variable ‘x’