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

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
//
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 10 Aug 2000 
5
 
6
// bug 371 We failed to subst explicit template args before trying to
7
// deduce the template.
8
 
9
namespace N
10
{
11
enum E { e0 };
12
 
13
template< E e > void nf();
14
 
15
}
16
 
17
template< N::E e > void gf();
18
 
19
struct X {
20
  template void xfn ();
21
  template static void sfn ();
22
};
23
 
24
template < class C >
25
void tf(C *ptr)
26
{
27
  N::nf();
28
  gf();
29
  ptr->X::xfn  ();
30
  ptr->C::template xfn  ();
31
  ptr->template xfn  ();
32
  ptr->X::sfn  ();
33
  ptr->C::template sfn  ();
34
  ptr->template sfn  ();
35
  X::sfn  ();
36
  C::template sfn  ();
37
}
38
 
39
void f(X *ptr)
40
{
41
  ptr->xfn  ();
42
  tf(ptr);
43
}

powered by: WebSVN 2.1.0

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