1 // { dg-do compile }
2 
3 // Origin: rmerkert@alphatech.com
4 //         Volker Reichelt <reichelt@gcc.gnu.org>
5 
6 // PR c++/12495: ICE looking up class template in local class.
7 
8 template <typename> struct A {};
9 
foo()10 template <typename T> void foo()
11 {
12     struct B
13     {
14         B (const A<T>&);
15     };
16 }
17