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/] [friend3.C] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2001 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 28 Dec 2001 
5
 
6
// PR 775 friend classes with qualified names inside template classes.
7
 
8
struct A
9
{
10
  struct B {
11
    B () { }
12
  };
13
};
14
 
15
template 
16
struct C: A {
17
  friend A::B::B (); // 2.95.2 ICE
18
  friend struct A;
19
  friend struct A::B; // 2.97 error
20
};
21
 
22
template class C;
23
 
24
template  class TPL
25
{
26
  class nested;
27
};
28
 
29
template  class TPL::nested
30
{
31
};

powered by: WebSVN 2.1.0

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