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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [context.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// PRMS Id: 3988
// Bug: DECL_CONTEXT of A::B gets clobbered in pushdecl when defining A::foo().

#pragma implementation "context.h"
#line 1 "context.h"
#pragma interface

template <class T>
struct A {
  inline void foo () { }
  class B { };
};

struct C : public A<int> {
  void bar (C::B&);
};
#line 2 "context.C"

void C::bar (C::B& b) { }

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.