// PR c++/51184 template struct S { }; template void foo(); struct Abs { virtual void bar() = 0; }; int main() { S s; foo(); }