1 // { dg-do run } 2 3 // Copyright (C) 2003 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 26 Mar 2003 <nathan@codesourcery.com> 5 6 // PR 10158. implicit inline template friends ICE'd 7 8 template <int N> struct X 9 { fooX10 template <int M> friend int foo(X const &, X<M> const&) 11 { 12 return N * 10000 + M; 13 } 14 }; 15 X<1234> bring; 16 X<5678> brung; 17 main()18int main() { 19 return foo (bring, brung) != 12345678; 20 } 21