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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [enum14.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Copyright (C) 2000 Free Software Foundation, Inc.
3
// Contributed by Nathan Sidwell 4 Oct 2000 
4
// Origin: bug 511 malte.starostik@t-online.de
5
 
6
// Bug 511. We failed to set access correctly for enumeration members of
7
// template classes
8
 
9
template 
10
class A
11
{
12
  public:
13
  enum foo {bar};
14
  typedef int baz;
15
};
16
 
17
struct C: public A
18
{
19
  void choke (foo);
20
  void choke (baz);
21
};
22
 
23
template 
24
struct B
25
{
26
  private:
27
  enum foo {bar}; // { dg-error "" } private
28
  typedef int baz;  // { dg-error "" } private
29
};
30
 
31
struct D: public B
32
{
33
  void choke (foo);   // { dg-error "" } within this context
34
  void choke (baz);   // { dg-error "" } within this context
35
};
36
 

powered by: WebSVN 2.1.0

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