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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [sfinae3.C] - Rev 693

Compare with Previous | Blame | View Log

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

template<typename> struct A
{
  typedef int X;
  static const int i = 0;
};

template<typename> struct B
{
  B(const B&);
  typedef typename A<char[A<B>::i]>::X Y; // { dg-error "forbids zero-size array" }
  template<typename T> B(T, Y);
};

B<int> b(0,0); // { dg-message "required from here" }

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.