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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec23.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// 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
struct Foo
9
{
10
  template 
11
  Foo (const T &); // { dg-error "T = Bar" "" }
12
};
13
 
14
struct Bar
15
{
16
  template 
17
  operator T () const;   // { dg-error "T = Foo" "" }
18
};
19
 
20
Foo Quux (Bar const &b)
21
{
22
  return b; // { dg-error "ambiguous" "" }
23
}
24
 
25
 

powered by: WebSVN 2.1.0

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