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

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
// PR c++/3671: Non-type enum parameters must not be converted
4
 
5
enum T1 {a};
6
enum T2 {b};
7
 
8
struct Y {
9
  template  void foo() {}
10
  template  void foo() {}
11
};
12
 
13
struct Z {
14
  template  void foo() {}
15
};
16
 
17
template void Y::foo ();
18
template void Z::foo ();   // { dg-error "" }

powered by: WebSVN 2.1.0

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