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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [unify8.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 12 Jan 2001 
5
 
6
// Bug 1630. Template deduction at a call allowed conversions more lenient than
7
// qualification conversions. That would lead to misleading diagnostics during
8
// overload resolution.
9
 
10
 
11
template  void Foo (T const **); // { dg-message "note" }
12
template  void Bar (T const * const *);
13
void Foo (int);       // { dg-message "note" }
14
void Foo (float);     // { dg-message "note" } candidate
15
 
16
void baz (int **p1)
17
{
18
  Foo (p1);   // { dg-error "match" } no such function
19
  // { dg-message "(candidate|incompatible cv-qualifiers)" "candidate note" { target *-*-* } 18 }
20
  Bar (p1);   // OK
21
}

powered by: WebSVN 2.1.0

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