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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash10.C] - Rev 853

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

//Origin: benko@sztaki.hu
//PR c++/11432
// The mainline ICE on this one between 2003-01-16 and 2003-07-29.

// { dg-do compile }
 
 extern "C" void abort();
 
 
template <int A>
struct a
{
  static int const value = A - 1;
};

 
template <int B>
struct b
{
  static int foo()
  {
    return a<L>::value;
  }

 
  static int const L = a<B + 1>::value;
};

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

powered by: WebSVN 2.1.0

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