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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend11.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* PR c++/30917 */
2
/* This used to ICE */
3
/* { dg-do compile } */
4
 
5
 
6
class QGList;
7
unsigned count() {
8
  class QGListIterator {
9
    friend class QGList;
10
    QGListIterator( const QGList & ); // OK, finds ::QGList.
11
  };
12
  return 0;
13
}
14
 
15
// This is valid.
16
unsigned count2() {
17
  class QGList2;
18
  class QGListIterator2 {
19
    friend class QGList2;
20
    QGListIterator2( const QGList2 & );
21
  };
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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