// The -pedantic option must be omitted to trigger the crash. // { dg-do compile } // { dg-options "" } // PR c++/7982: Crash warning about implicit typename. // The base class refers to another typename, while the // name lookup finds a template. template struct X {}; template struct C { typedef typename T::X X; }; template struct A : public C { typedef ::X X; };