URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.