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

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

// PR c++/16929

template <class T>
class A {
  int x;
};

template <class T>
class B {
protected:
    
  A<T> a; // { dg-error "" }
    
  void f(const A<T> * a1 = &a); // { dg-error "this location" }
    
  void g(void);
};

template <class T>
void B<T>::g(void) {
  f();
}

template class B<long>;

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.