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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [syntax2.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
 
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 22 June 2000 
5
 
6
// Origin GNATS bug report 262 from Jeremy Sanders 
7
// and several others. With templates, it's very easy to say something
8
// erroneous like
9
//    template class X::X
10
// The culprit
11
//    ... class X::X ...
12
// caused us to ICE as we got confused about pushing and popping scopes.
13
 
14
template  class image
15
{
16
public:
17
  template  image(const image ©);
18
};
19
 
20
template  template  image::image(const image ©)
21
{
22
}
23
 
24
template class image;
25
template class image::image (const image &); // { dg-error "" } parse error
26
template class image::image (image); // { dg-error "" } specified as declarator-id
27
template image::image (const image &);

powered by: WebSVN 2.1.0

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