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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename25.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// { dg-options "" }
3
// Copyright (C) 2000 Free Software Foundation
4
// Adapted by Nathan Sidwell 1 July 2000 
5
// Derived from a bug report by scott snyder 
6
// Our implicit typename extension was causing this pedantically
7
// correct program to fail
8
 
9
struct list
10
{
11
  typedef int reference;
12
};
13
 
14
class d0_Collection_Base {};
15
 
16
 
17
template 
18
class d0_List_1
19
  : virtual public d0_Collection_Base,
20
    public list
21
{
22
public:
23
  typedef int reference;
24
};
25
 
26
template 
27
class d0_List
28
{
29
public:
30
  typedef d0_List_1 Base;
31
  typedef typename Base::reference              reference;
32
};

powered by: WebSVN 2.1.0

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