Downcasting
Per Bothner
per@bothner.com
Mon Jun 25 19:17:00 GMT 2001
Alexandre Petit-Bianco <apbianco@cygnus.com> writes:
> It's happening in gcc/java/decl.c:build_result_decl and I think was
> introduced for better cooperation with C++ when CNI was hacked on,
Not quite. I think this was for the sake of ABI compatibility.
> in order to fix an early bug (I say `think' because I can't find the
> matching ChangeLog entry, `cvs log' doesn't help either:)
> We should find a way to be able to report this problem, regardless of
> what is done for the sake of compiler cooperations. It's obviously
> wrong for jc1 not to report this error (note that when the assignment
> is checked, it's too late for jc1 to realize that something's wrong.)
I think this can be handled in patch_return fairly easily.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
More information about the Java
mailing list