This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.
> In egcs, dynamic_cast seems to have behavior different from that > prescribed by the C++ standard. However, all other C++ compilers I've > tried do exactly the same thing as egcs, so I think that I'm probably > misunderstand the standard. If someone could clarify to me if and why > the standard actually prescribes egcs's behavior, I would appreciate > it. > Keep in mind that I don't actually like the way dynamic cast is > defined by the standard. However, this is a question about what what > the standard requires, not what it should have required. The place to ask such question is on comp.std.c++, where you're likely to get answers from the people who actually wrote the standard. The fact that you say that all the other compilers are doing exactly what egcs is doing suggest that it is your reading rather than the compiler that is wrong. (Though of course it's possible that all the implementers are making the same mistake).