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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [typedef20.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 693 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin PR c++/40007
3
// { dg-do compile }
4
 
5
class x
6
{
7
  typedef int privtype; // { dg-error "is private" }
8
 
9
protected:
10
  typedef int type;
11
};
12
 
13
template
14
struct y : public x
15
{
16
  typename x::type z;
17
};
18
 
19
template
20
struct y : public x
21
{
22
  typedef x::type good;
23
  typedef x::privtype bad; // { dg-error "within this context" }
24
};
25
 
26
template class y;
27
template class y;

powered by: WebSVN 2.1.0

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