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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [typename5.C] - Diff between revs 149 and 154

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

Rev 149 Rev 154
// { dg-do compile }
// { dg-do compile }
// Origin: ariels@compugen.co.il
// Origin: ariels@compugen.co.il
// PR c++/2513: typename handling when scope is dependent as
// PR c++/2513: typename handling when scope is dependent as
// described in DR108.
// described in DR108.
template  struct Select {
template  struct Select {
  typedef int Result;
  typedef int Result;
};
};
template  class Pred> struct FindType {
template  class Pred> struct FindType {
  typedef typename Select::Result Result;
  typedef typename Select::Result Result;
};
};
template  struct Int {
template  struct Int {
  template struct RightSize {};
  template struct RightSize {};
  typedef typename FindType::Result type;
  typedef typename FindType::Result type;
};
};
 
 

powered by: WebSVN 2.1.0

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