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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
// Contributed by Wolfgang Bangerth 
3
// PR c++/509: Make sure specializations of member templates match correctly
4
//  between template and non-template overloads.
5
 
6
template 
7
struct A {
8
  template  void f (U);
9
  void f2 (int);
10
 
11
  template  void h (U);
12
  void h (long);
13
};
14
 
15
template <>
16
struct A {
17
  template  void g (U);
18
  void g2 (float);
19
};
20
 
21
template <> void A::f (int);                    // { dg-error "" }
22
template <> template <> void A::f (int);
23
 
24
template <> void A::f2 (int);
25
template <> template <> void A::f2 (int);       // { dg-error "" }
26
 
27
template <> void A::g (float);
28
template <> template <> void A::g(float);     // { dg-error "" }
29
 
30
template <> void A::g2 (float);               // { dg-error "" }
31
template <> template <> void A::g2(float);    // { dg-error "" }
32
 
33
template <> void A::h (long);
34
template <> template <> void A::h(long);

powered by: WebSVN 2.1.0

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