URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR37314 rejects-valid, from w.doeringer
|
// PR37314 rejects-valid, from w.doeringer
|
template
|
template
|
struct A {
|
struct A {
|
typedef __PTRDIFF_TYPE__ difference_type;
|
typedef __PTRDIFF_TYPE__ difference_type;
|
struct B {
|
struct B {
|
typedef typename A::difference_type difference_type;
|
typedef typename A::difference_type difference_type;
|
difference_type operator-(B const&) const;
|
difference_type operator-(B const&) const;
|
T t;
|
T t;
|
};
|
};
|
};
|
};
|
//
|
//
|
|
|
template
|
template
|
typename A::B::difference_type A::B::operator-(B const&) const {
|
typename A::B::difference_type A::B::operator-(B const&) const {
|
return -1;
|
return -1;
|
}
|
}
|
|
|
//
|
//
|
int main() {
|
int main() {
|
A::B i;
|
A::B i;
|
++i.t;
|
++i.t;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.