URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Origin: benko@sztaki.hu
|
// Origin: benko@sztaki.hu
|
|
|
// PR c++/10496: Incorrect pointer to member function diagnostics
|
// PR c++/10496: Incorrect pointer to member function diagnostics
|
// for constant member functions.
|
// for constant member functions.
|
|
|
struct a
|
struct a
|
{
|
{
|
int f() const;
|
int f() const;
|
};
|
};
|
|
|
|
|
int
|
int
|
a::f() const
|
a::f() const
|
{
|
{
|
int (a::* b)() const = &f; // { dg-error "&a::f" }
|
int (a::* b)() const = &f; // { dg-error "&a::f" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.