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