Commit 543df66a by Benjamin Kosnik

nortel regressions since 97r1

From-SVN: r24093
parent faa9eb19
// 981203 bkoz
// g++/16077
// Build don't link:
class nicaragua;
struct colombia {
colombia();
colombia(const colombia &);
colombia(const nicaragua &);
colombia &operator= (const colombia&);
};
struct nicaragua {
public:
nicaragua();
nicaragua(const nicaragua&);
operator colombia();
};
void peace(const colombia&); // WARNING - // WARNING -
void foo(nicaragua& b) {
peace(b); // WARNING - // WARNING -
}
// 981204 bkoz
// g++/18208
// Build don't link:
typedef unsigned int uint_32;
class puertorico {
public:
void *f ();
private:
uint_32 member;
};
void foo( )
{
uint_32 ui;
puertorico obj;
// Bug using static_cast<>
ui = static_cast<uint_32>(obj); // ERROR - // ERROR -
// Bug when missing the pair of braces
ui = (uint_32) obj.f; // ERROR - // ERROR -
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment