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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [nested2.C] - Rev 816

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// PRMS Id: 3764 (c/h)
// Bug: g++ gets into an infinite loop trying to find the top-level context

class Menu;
class MenuItem;

class MenuAction {
public:
  virtual void execute (Menu& menu, MenuItem& menuItem) = 0;
protected:
  MenuAction () {}
}; 

class Test {
  class MenuCBA : public MenuAction {
  public:
    typedef void (Test::* MenuCBA_Member) (Menu& menu, MenuItem& menuItem);
    MenuCBA (Test& instance, MenuCBA_Member member)
      : _instance(&instance), _member(member) { }
    void execute (Menu& menu, MenuItem& menuItem);
  private:
    MenuCBA_Member _member;
    Test* _instance;
  };
};

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.