1 // PR c++/31187 2 // Bug: the repeated declaration was confusing the compiler into 3 // thinking that foo1 had language internal linkage. 4 5 class foo { }; 6 7 namespace 8 { 9 extern foo foo1; 10 foo foo1; 11 } 12 13 template< foo * > 14 class bar { }; 15 16 bar< &foo1 > bar1; 17