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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 2 Apr 2005 
3
 
4
// PR 20723
5
// Origin: Andrew Pinski 
6
//         Nathan Sidwell 
7
 
8
template  class srp;
9
template  struct ptr
10
{
11
  template  ptr(const srp &other); // { dg-message "ptr::ptr" }
12
};
13
template  struct srp
14
{
15
  template  operator ptr(void) const; // { dg-message "srp::operator" }
16
};
17
ptr parent_get()
18
{
19
  srp parent;           // { dg-message "candidate" }
20
  return parent; // { dg-error "is ambiguous" }
21
}

powered by: WebSVN 2.1.0

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