language: C++ 4.7.2 (gcc-4.7.2)
date: 547 days 23 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Parent
{
  class A {};
 
  namespace Nested
  {
    class A {};
  }
  
  template <typename T>
  class B
  {
    A myA;
  };
}
 
namespace Parent
{
  using namespace Nested;
  
  void foo()
  {
    B<int> myB;
  }
}
 
int main() { return 0; }
 
prog.cpp: In function ‘void Parent::foo()’:
prog.cpp:23: warning: unused variable ‘myB’
Scope resolution for template instantiation