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/] [instantiate1.C] - Rev 816

Compare with Previous | Blame | View Log

// { dg-do compile }
// Origin:

// PR c++/6716
// ICE in complex class structure when components are incomplete

template <class T> struct X {
  T t;                          // { dg-error "incomplete" }
};

template <class T> struct Y {
  X<T> x;                       // { dg-error "instantiated" }
};

template <class T> struct Z {   // { dg-error "declaration" }
  Y<Z<T> > y;                   // { dg-error "instantiated" }
};

struct ZZ : Z<int>
{
};

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.