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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash12.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Martin von Loewis 
4
 
5
// PR c++/157: Incorrect type/template decision in function parameter.
6
 
7
template  class auto_ptr {};
8
template 
9
class counted_ptr
10
{
11
public:
12
  counted_ptr(::auto_ptr<_Tp>& __a);               // { dg-error "candidate" }
13
  ::auto_ptr<_Tp> auto_ptr();
14
};
15
 
16
template 
17
inline counted_ptr<_Tp>::counted_ptr(class auto_ptr& __a) // { dg-error "required|not match|template" }
18
{
19
}
20
 
21
template 
22
inline class auto_ptr<_Tp> counted_ptr<_Tp>::auto_ptr()
23
{
24
}

powered by: WebSVN 2.1.0

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