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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit71.C] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// by Alexandre Oliva 
3
// Based on a testcase by Reid M. Pinchback 
4
// According to the C++ Standard [temp.expl.spec]/17-18, explicit
5
// specializations are only valid if all enclosing template classes
6
// of the specialized template are fully specialized too
7
 
8
template 
9
class bug {
10
  template 
11
  class a {};
12
};
13
template 
14
template <>                     // { dg-error "" } invalid specialization
15
class bug::a {};        // { dg-error "" }

powered by: WebSVN 2.1.0

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