basic_istream error building SPEC eon on AIX
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Aug 12 02:01:00 GMT 2003
David Edelsohn <dje@watson.ibm.com> writes:
| >>>>> Gabriel Dos Reis writes:
|
| Gaby> | std::basic_istream<char, std::char_traits<char> >::get(unsigned char&)'
|
| Gaby> This does not exist.
|
| 252.eon includes the following code:
|
| ggRasterSurfaceTexture::ggRasterSurfaceTexture( istream& in) {
| ...
| unsigned char red, green, blue;
| in.get(red); // eat a byte
Ah, then, that is bogus.
| ...
| in.get(red);
| in.get(green);
| in.get(blue);
|
|
| Why did this work before?
I have no theory for the moment. Do they still have a working SPEC on eon?
If GCC accepted the above in the past, it was simply by mistake.
| Why do the GCC SPEC testers runs by Andreas and Diego compile this?
|
| Is this a case of G++ being too pedantic in non-pedantic mode?
No, I don't beleive so. You cannot pass a T& when a U& is expected
unless U and T are related. And the case above is explicitly invalidated.
-- Gaby
More information about the Libstdc++
mailing list