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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend11.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR c++/30917 */
2
/* This used to ICE */
3
/* { dg-do "compile" } */
4
 
5
 
6
// This is invalid: QGList must only be looked up in count.
7
class QGList;
8
unsigned count() {
9
  class QGListIterator {
10
    friend class QGList;
11
    QGListIterator( const QGList & ); /* { dg-error "expected|with no type" } */
12
  };
13
  return 0;
14
}
15
 
16
// This is valid.
17
unsigned count2() {
18
  class QGList2;
19
  class QGListIterator2 {
20
    friend class QGList2;
21
    QGListIterator2( const QGList2 & );
22
  };
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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