------- Comment #5 from jakub at gcc dot gnu dot org  2008-12-19 15:23 -------
Reduced testcase:
struct A
{
  static A *bar () { return a; }
  static A *a;
};

struct B : public A
{
  static void baz ();
};

template <class T>
void foo ()
{
  (static_cast<B *> (A::bar ()))->baz ();
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38577

Reply via email to