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++.benjamin/] [tem04.C] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// 980827 bkoz
3
// template parameter redeclaration bugs, part two:
4
// template template params and expanded template non-type parms
5
 
6
// 14.1 Template parameters
7
// p 13
8
// The scope of a template-parameter extens from its point of
9
// declartion until the end of its template. In particular, a
10
// template-parameter can be used in the declaration of subsequent
11
// template-parameters and their default arguments.
12
 
13
// 14.6.1 Locally declared names
14
// p 4
15
// A template-parameter shall not be redeclared within its scope
16
// (including nested scopes). A template-parameter shall not have the
17
// same name as the template name.
18
 
19
// 14
20
// declared friend template (v3, template type parameters)
21
template // { dg-error "" } .*
22
class Xfourteen {
23
protected:
24
  T4 value;
25
public:
26
  Xfourteen(T4 init): value(init) {}
27
  template