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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [access9.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// Copyright (C) 2003 Free Software Foundation
// Copyright (C) 2003 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij 
// Contributed by Kriang Lerdsuwanakij 
// { dg-do compile }
// { dg-do compile }
// Template instantiate during deferred access check
// Template instantiate during deferred access check
template  struct C {
template  struct C {
  typedef int Y;
  typedef int Y;
};
};
template  void f(typename T::X) {
template  void f(typename T::X) {
}
}
class A {
class A {
  typedef int X;
  typedef int X;
  template  friend void f(typename T::X);
  template  friend void f(typename T::X);
};
};
C<&f >::Y g(int);
C<&f >::Y g(int);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.