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++.old-deja/] [g++.pt/] [unify8.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 12 Jan 2001 
// Contributed by Nathan Sidwell 12 Jan 2001 
// Bug 1630. Template deduction at a call allowed conversions more lenient than
// Bug 1630. Template deduction at a call allowed conversions more lenient than
// qualification conversions. That would lead to misleading diagnostics during
// qualification conversions. That would lead to misleading diagnostics during
// overload resolution.
// overload resolution.
template  void Foo (T const **);
template  void Foo (T const **);
template  void Bar (T const * const *);
template  void Bar (T const * const *);
void Foo (int);       // { dg-message "candidate" }
void Foo (int);       // { dg-message "candidate" }
void Foo (float);     // { dg-message "note" } candidate
void Foo (float);     // { dg-message "note" } candidate
void baz (int **p1)
void baz (int **p1)
{
{
  Foo (p1);   // { dg-error "match" } no such function
  Foo (p1);   // { dg-error "match" } no such function
  Bar (p1);   // OK
  Bar (p1);   // OK
}
}
 
 

powered by: WebSVN 2.1.0

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