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/] [deduct3.C] - Blame information for rev 816

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 18 Jan 2001 
5
 
6
// Bug 1694. We complained during deduction, rather than reject the deduction.
7
 
8
template  class X {};
9
 
10
template  X Foo (T *);
11
template  int Foo (T const *);
12
 
13
void Baz (int *p1, int const *p2)
14
{
15
  int i = Foo (p1); // { dg-error "" } cannot convert
16
  int j = Foo (p2);
17
}
18
void Baz (float *p1, float const *p2)
19
{
20
  int i = Foo (p1); // ok, deduction fails on X Foo (T *)
21
  int j = Foo (p2);
22
}

powered by: WebSVN 2.1.0

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