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/] [ttp3.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) 2001 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 29 Dec 2001 
5
 
6
// PR 5213. We failed to spot that class List was a template, rather
7
// than a non-template or specialization
8
 
9
 
10
template  class vector { };
11
 
12
class OUTER {
13
  public:
14
  template 
15
  class List { };
16
 
17
  vector data; // { dg-error "invalid|required|ISO C" "" }
18
};
19
 
20
template 
21
class List { };
22
 
23
// This next line should just do a lookup of 'class List', and then
24
// get a type/value mismatch. Instead we try and push 'class List'
25
// into the global namespace and get a redeclaration error.
26
vector data;    // { dg-error "invalid|required|declaration" "" }

powered by: WebSVN 2.1.0

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