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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [template2.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 24 Mar 2003 
5
 
6
// PR 10199. Lookup problems
7
 
8
class X {
9
public:
10
  template
11
  int bar ();
12
};
13
 
14
template
15
int fooo ();
16
 
17
template
18
void bar (T& g)
19
{
20
  int kk = fooo<17>();  // OK
21
  X x;
22
  int k = x.bar<17>();  // Not OK
23
}
24
 
25
int main ()
26
{
27
  X x;
28
  int k=x.bar<17>();    // OK
29
  int n;
30
  bar(n);
31
}

powered by: WebSVN 2.1.0

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