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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [access9.C] - Rev 12

Compare with Previous | Blame | View Log

// Copyright (C) 2003 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile }

// Template instantiate during deferred access check

template <void (*)(int)> struct C {
  typedef int Y;
};

template <class T> void f(typename T::X) {
}

class A {
  typedef int X;
  template <class T> friend void f(typename T::X);
};

C<&f<A> >::Y g(int);

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.