This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR java/9157: ICE on malformed ?: condition
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: GCJ Patches <java-patches at gcc dot gnu dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 1 Feb 2005 07:58:04 +0530
- Subject: Re: PR java/9157: ICE on malformed ?: condition
- References: <41FE4381.4050108@gmail.com> <16894.18362.609094.629909@cuddles.cambridge.redhat.com>
- Reply-to: Ranjit Mathew <rmathew at gmail dot com>
On Mon, 31 Jan 2005 14:59:06 +0000, Andrew Haley <aph@redhat.com> wrote:
> > PR java/9157
> > * parse.y (build_string_concatenation): Remove redundant if.
> > (patch_conditional_expr): Attempt to patch_string() the condition
> > of a ?: as well, in addition to its other operands.
>
> OK.
Thanks. I've committed the patch with the following
minor change to the comment preceding the interesting
hunk:
/* The condition and operands of ?: might be StringBuffers crafted
as a result of a string concatenation. Obtain decent ones here. */
I have also punted on the ICE v/s "normal" fail for
the testsuite - it looks beyond me (for the moment). :-/
Thanks,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/