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/] [using14.C] - Rev 825

Go to most recent revision | Compare with Previous | Blame | View Log

// PR c++/26102

template <class T> struct B1 { int i(); };

struct B2 { int i(); };

template <class T> struct C : public B1<T>, public B2
{
  using B2::i;
  void f()
  {
    i();                        // should be accepted
    i.i();                      // { dg-error "" }
  }
};

int main()
{
  C<int> c;
  c.f();                        // { dg-error "instantiated" }
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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