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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [covariant10.C] - Rev 315

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

// { dg-do compile }

// Contributed by Nathan Sidwell 23 Oct 2003 <nathan@codesourcery.com>
// Origin: grigory@stl.sarov.ru
// PR c++/12699 ICE with covariancy

struct c1 {
  virtual void f1() const {}
};

struct c5 {};

struct c6 : virtual c1 {
  virtual c5* f33() const {}
};

struct c13 : virtual c5 { };

struct c17 : virtual c6
{
  virtual c13* f33() const {}
};

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.