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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [koenig5.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
// Contributed by David Abrahams 
3
// PR c++/14143: Koenig lookup should only look into template arguments only
4
//  if the argument is a template-id.
5
 
6
namespace fu
7
{
8
  template 
9
  struct bar
10
  {
11
      struct baz {};
12
  };
13
}
14
 
15
namespace axe
16
{
17
  struct handle {};
18
 
19
  template 
20
  char* f(T&);
21
}
22
 
23
namespace test
24
{
25
  template 
26
  int f(T const&);
27
 
28
  template 
29
  int g(T x) { return f(x); }
30
 
31
  int x = g(fu::bar::baz());
32
}

powered by: WebSVN 2.1.0

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