OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [access6.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do compile }
// { dg-do compile }
// Origin: Detlef Vollmann 
// Origin: Detlef Vollmann 
// PR c++/8389
// PR c++/8389
// Access control ICE for typename during instantiation and name mangling
// Access control ICE for typename during instantiation and name mangling
template  class Base {
template  class Base {
  protected:
  protected:
    typedef int Type;
    typedef int Type;
};
};
template  struct Derived : public Base {
template  struct Derived : public Base {
  typedef typename Base::Type Type;
  typedef typename Base::Type Type;
  template  void f(Type = Type()) {}
  template  void f(Type = Type()) {}
};
};
template void Derived::f (Type);
template void Derived::f (Type);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.