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

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Sergey Shandar 
4
 
5
// PR c++/9810: Access checking for member function template
6
// appeared in using declaration.
7
 
8
struct A
9
{
10
  template void F(R) {}
11
};
12
 
13
struct B: private A
14
{
15
  using A::F;
16
};
17
 
18
int main()
19
{
20
  B b;
21
  b.F(3);
22
}

powered by: WebSVN 2.1.0

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