On Tue, 2008-06-03 at 23:58 +0100, Robert Greig wrote:
> >> I will install VS 2008 on my machine and see what it says but my money
> >> right now is that this will work on that platform and is a bug in the
> >> Sun compiler.
> >>
> >
> > I'm not so sure. The counter argument is: dynamic-cast operates on run time
> > types. The run-time type is AsyncIO. AsyncIO is not (publicly) a
> > DispatchHandler therefore the cast should fail.
> 
> OK, I tried this out with VS 2008. It agrees with gcc, and the cast succeeds.

I see that Steve Clamage (Sun Compiler Engineer) has replied to Manuel
telling him to report this as a compiler bug.

http://forum.java.sun.com/thread.jspa?threadID=5301939

Time for me to stop flogging this horse (and go to bed): Here is a
message from the previous century about this issue and the egcs compiler
(proto gcc 3). The poster actually does quote the standard in support of
my position.

http://gcc.gnu.org/ml/gcc-bugs/1999-02n/msg00726.html

Andrew


Reply via email to