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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [typename5.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Origin: ariels@compugen.co.il
4
 
5
// PR c++/2513: typename handling when scope is dependent as
6
// described in DR108.
7
 
8
template  struct Select {
9
  typedef int Result;
10
};
11
 
12
template  class Pred> struct FindType {
13
  typedef typename Select::Result Result;
14
};
15
 
16
template  struct Int {
17
  template struct RightSize {};
18
  typedef typename FindType::Result type;
19
};

powered by: WebSVN 2.1.0

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