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/] [typename10.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2006 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 25 Aug 2006 
5
 
6
// Origin: Tobias Schwinger 
7
// PR 27787. Too eager to resolve a typename
8
 
9
template
10
struct x
11
{
12
  template
13
  struct y
14
  {
15
    typedef Y type;
16
  };
17
};
18
 
19
template
20
struct a : x
21
{
22
  template
23
  typename a::template y::type f(B);
24
};

powered by: WebSVN 2.1.0

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