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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec15.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 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
// { dg-message "need 2" "" { target *-*-* } 21 }
23
template <> template <> void A::f (int);
24
 
25
template <> void A::f2 (int);
26
template <> template <> void A::f2 (int);       // { dg-error "" }
27
 
28
template <> void A::g (float);
29
template <> template <> void A::g(float);     // { dg-error "" }
30
 
31
template <> void A::g2 (float);               // { dg-error "" }
32
template <> template <> void A::g2(float);    // { dg-error "" }
33
 
34
template <> void A::h (long);
35
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.