1 2 3 4 5 6 7 8
// { dg-options "" } int foo; template <class T> struct Base {}; template <class T> struct Derived : public Base<typeof(foo)> {};