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++.old-deja/] [g++.pt/] [spec20.C] - Blame information for rev 305

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
 
3
// According to the non-normative example in
4
// [temp.class.spec.mfunc]/2, these should be valid, but the grammar
5
// in the Standard does not allow partial nor full specializations as
6
// member-declarations, so we'd better not support them.
7
 
8
template 
9
struct S {
10
  template  void f(U);
11
  template <> void f(int); // { dg-error "" } invalid specialization
12
 
13
  template  struct I {};      // { dg-error "template" }
14
  template  struct I {};  // { dg-error "template" }
15
  template <> struct I; // { dg-error "" } invalid specialization
16
};

powered by: WebSVN 2.1.0

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