URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// 981203 bkoz
|
// 981203 bkoz
|
// g++/13478
|
// g++/13478
|
|
|
class A {};
|
class A {};
|
class AData {};
|
class AData {};
|
|
|
typedef void (A::* hand) (void);
|
typedef void (A::* hand) (void);
|
|
|
struct hand_table {
|
struct hand_table {
|
const int data1;
|
const int data1;
|
const hand data2;
|
const hand data2;
|
};
|
};
|
|
|
class Agent : public A {
|
class Agent : public A {
|
public:
|
public:
|
enum { first = 1, last };
|
enum { first = 1, last };
|
protected:
|
protected:
|
static const hand_table table_1[];
|
static const hand_table table_1[];
|
static const AData table_2;
|
static const AData table_2;
|
private:
|
private:
|
void foo (void);
|
void foo (void);
|
};
|
};
|
|
|
const hand_table Agent::table_1[] =
|
const hand_table Agent::table_1[] =
|
{
|
{
|
{0, &Agent::table_2},
|
{0, &Agent::table_2},
|
{first, &Agent::foo},
|
{first, &Agent::foo},
|
{last, &(hand)Agent::foo} // { dg-error "" } no match
|
{last, &(hand)Agent::foo} // { dg-error "" } no match
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.