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/] [explicit-instantiation3.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
// Origin: 
3
// c++/8266: Explicit instantiation of a template outside its namespace is
4
//  broken
5
 
6
namespace N
7
{
8
  template  T foo (T)
9
  { return T (); }
10
 
11
  struct A
12
  {
13
    template 
14
    struct B {};
15
  };
16
 
17
  template 
18
  struct C {};
19
 
20
  template double foo(double);
21
  template float  foo(float);
22
  template struct A::B<0>;
23
  template struct C<0>;
24
}
25
 
26
template int    N::foo(int);
27
template char   N::foo(char);
28
template struct N::A::B<1>;
29
template struct N::C<1>;
30
 
31
 

powered by: WebSVN 2.1.0

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