URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// C++ PR/2521
|
// C++ PR/2521
|
// Copyright (C) 2002 Free Software Foundation
|
// Copyright (C) 2002 Free Software Foundation
|
// Contributed by Gabriel Dos Reis
|
// Contributed by Gabriel Dos Reis
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
struct A
|
struct A
|
{
|
{
|
void f();
|
void f();
|
void foo(void (A::*)(int)); // { dg-message "candidate" "" }
|
void foo(void (A::*)(int)); // { dg-message "candidate" "" }
|
template
|
template
|
void g(T);
|
void g(T);
|
void h()
|
void h()
|
{
|
{
|
void (A::*p)() = &A::f;
|
void (A::*p)() = &A::f;
|
void (A::*q)() = &(A::f); // { dg-error "parenthesized" "" }
|
void (A::*q)() = &(A::f); // { dg-error "parenthesized" "" }
|
foo(&g); // { dg-error "no matching" "" }
|
foo(&g); // { dg-error "no matching" "" }
|
}
|
}
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.