// { dg-do link } // { dg-options "-fno-implicit-templates" } // Origin: Mark Mitchell template struct U { static int j; }; template struct S { static const int i = 7; }; template const int S::i; template int U::j = S::i + 5; template int U::j; int main () { }