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.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [crash54.C] - Rev 519

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
int g (T);

int j = g (3);

template <class T>
inline T f (T)
{
  return 2;
}

template <class T>
struct S
{
  static const int i;
};

template <class T>
const int S<T>::i = f (3);

template <class T>
int g (T)
{
  return S<double>::i;
}

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.