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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [friend19.C] - Rev 328

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do compile }

// Origin: Benjamin Li <benxbli@yahoo.com>

// PR c++/11030: Template substitution of friend class that is
// a specialization.

template <int S>
struct A
{
  void func(void);
};

template <class T>
class C
{
  static void private_func(void) {}
public:
  friend class A<512>;
};

template <int S>
void A<S>::func(void)
{
  C<void>::private_func();
}

template class A<512>;

Go to most recent revision | 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.