OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.benjamin/] [tem04.C] - Diff between revs 305 and 384

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 384
// { dg-do assemble  }
// { dg-do assemble  }
// 980827 bkoz
// 980827 bkoz
// template parameter redeclaration bugs, part two:
// template parameter redeclaration bugs, part two:
// template template params and expanded template non-type parms
// template template params and expanded template non-type parms
// 14.1 Template parameters
// 14.1 Template parameters
// p 13
// p 13
// The scope of a template-parameter extens from its point of
// The scope of a template-parameter extens from its point of
// declartion until the end of its template. In particular, a
// declartion until the end of its template. In particular, a
// template-parameter can be used in the declaration of subsequent
// template-parameter can be used in the declaration of subsequent
// template-parameters and their default arguments.
// template-parameters and their default arguments.
// 14.6.1 Locally declared names
// 14.6.1 Locally declared names
// p 4
// p 4
// A template-parameter shall not be redeclared within its scope
// A template-parameter shall not be redeclared within its scope
// (including nested scopes). A template-parameter shall not have the
// (including nested scopes). A template-parameter shall not have the
// same name as the template name.
// same name as the template name.
// 14
// 14
// declared friend template (v3, template type parameters)
// declared friend template (v3, template type parameters)
template // { dg-error "" } .*
template // { dg-error "" } .*
class Xfourteen {
class Xfourteen {
protected:
protected:
  T4 value;
  T4 value;
public:
public:
  Xfourteen(T4 init): value(init) {}
  Xfourteen(T4 init): value(init) {}
  template