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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [array19.C] - Rev 783

Compare with Previous | Blame | View Log

// PR c++/33553
// { dg-do compile }

template <class T> struct S { static const int sz = 2; };
template <class T> struct U { enum { sz = 2 }; };

template <class R>
struct P
{
  template <class T> void bar (int (&x)[S<T>::sz]);
  template <class T> void baz (int (&x)[U<T>::sz]);
};

P<int> p;

void
foo (void)
{
  int x[2];
  p.bar<int> (x);
  p.baz<int> (x);
}

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.