This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: automatic casting


>>>>> "Diego" == Diego Novillo <dnovillo@redhat.com> writes:

Diego> On Tue, 2004-08-31 at 08:49, kartick Vaddadi wrote:
>> if(o instanceof Dog)
>> {
>> o.bark();
>> . . .
>> }

Diego> I think this is the same issue reported in
Diego> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15525
Diego> If so, there may be a patch coming down the road to support this.

This is related.  The original poster wanted a language extension.  I
don't think we'll do this; a language extension would need a strong
justification, and this particular extension would mean mixing flow
control with semantic analysis, which would be pretty ugly to
implement.

The PR is about removing redundant casts from the generated code.
I'll upload my patch into the PR soon.  It works ok, but as I recall
it needs VRP to remove everything.  When I upload it I'll put the info
in the PR.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]