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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash54.C] - Blame information for rev 301

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/42057
2
 
3
struct A; // { dg-error "forward declaration" }
4
 
5
struct B
6
{
7
  virtual B* foo(A);
8
};
9
 
10
struct C : virtual B
11
{
12
  virtual C* foo(A) { return 0; } // { dg-error "incomplete type" }
13
};
14
 
15
C c;

powered by: WebSVN 2.1.0

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