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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [crash-12.C] - Rev 693

Compare with Previous | Blame | View Log

// Origin: PR c++/43953

template<typename T,
         typename U,
         typename T::type V> class bad;

// partial specialization
// for T = U
template<typename T, typename T::type V>
class bad<T, T, V>
{
public:
  static void foo() {}
};

struct dummy
{
  typedef int type;
};

int main()
{
  bad<dummy, dummy, 0>::foo();
}

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.