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.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explarg1.C] - Rev 338

Compare with Previous | Blame | View Log

// { dg-do run  }
// Bug: g++ generates an error trying to generate the first foo<int>, when
// it should silently fail and go on to the next one.

template<class T, typename U> class A { };

template<class T> void
foo(const A<T,typename T::N>&);

template<typename T>
class B { };

template<typename T> void
foo(B<T> const &) { }

int
main(void)
{
  B<int> sa;

  foo<int> (sa);
}

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.