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] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
// Origin:
3
 
4
// PR c++/6716
5
// ICE in complex class structure when components are incomplete
6
 
7
template  struct X {
8
  T t;                          // { dg-error "incomplete" }
9
};
10
 
11
template  struct Y {
12
  X x;                  // { dg-error "instantiated" }
13
};
14
 
15
template  struct Z {    // { dg-error "declaration" }
16
  Y > y;                        // { dg-error "instantiated" }
17
};
18
 
19
struct ZZ : Z
20
{
21
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.