URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Bug: member operator shadows global template in tsubst.
|
// Bug: member operator shadows global template in tsubst.
|
|
|
class ostream;
|
class ostream;
|
|
|
template class smanip;
|
template class smanip;
|
|
|
template
|
template
|
ostream& operator<<(ostream& o, const smanip& m);
|
ostream& operator<<(ostream& o, const smanip& m);
|
|
|
template class smanip {
|
template class smanip {
|
public:
|
public:
|
friend ostream& operator<< <>(ostream &o, const smanip&m);
|
friend ostream& operator<< <>(ostream &o, const smanip&m);
|
};
|
};
|
|
|
template
|
template
|
ostream& operator<<(ostream& o, const smanip& m)
|
ostream& operator<<(ostream& o, const smanip& m)
|
{ return o;}
|
{ return o;}
|
|
|
class X
|
class X
|
{
|
{
|
public:
|
public:
|
X operator<<(int); // commenting out this line makes it work!
|
X operator<<(int); // commenting out this line makes it work!
|
void print(ostream& os);
|
void print(ostream& os);
|
};
|
};
|
|
|
void X::print(ostream& os)
|
void X::print(ostream& os)
|
{
|
{
|
smanip smd;
|
smanip smd;
|
os << smd; // { dg-bogus "" }
|
os << smd; // { dg-bogus "" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.