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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [defarg8.C] - Diff between revs 305 and 338

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

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// Default arguments containing more than one non-nested explicit
// Default arguments containing more than one non-nested explicit
// template argument leads to parse error
// template argument leads to parse error
// This might be ill formed. See DR 325 (one proposed resolution is to make
// This might be ill formed. See DR 325 (one proposed resolution is to make
// it so)
// it so)
template  class foo1;
template  class foo1;
template  class foo2;
template  class foo2;
struct bar {
struct bar {
  template 
  template 
  bar(int i = foo1::baz, // { dg-bogus "" }  -
  bar(int i = foo1::baz, // { dg-bogus "" }  -
      int j = int(foo2::baz), // ok
      int j = int(foo2::baz), // ok
      int k = foo2::baz) {} // ok?
      int k = foo2::baz) {} // ok?
};
};
 
 

powered by: WebSVN 2.1.0

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