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

Subversion Repositories openrisc

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

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 A
6
{
7
  typedef int mytype; // { dg-error "'typedef int A::mytype' is private" }
8
};
9
 
10
template 
11
class B : public A
12
{
13
};
14
 
15
template
16
class B : public A
17
{
18
  mytype mem; // { dg-error "within this context" }
19
};
20
 
21
B b;

powered by: WebSVN 2.1.0

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