This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-980129, fixed ambiguous `else' warnings in the gcc/f/ dir.
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: egcs-980129, fixed ambiguous `else' warnings in the gcc/f/ dir.
- From: Richard Henderson <rth at cygnus dot com>
- Date: Thu, 12 Feb 1998 01:16:18 -0800
- Cc: egcs at cygnus dot com
- References: <199802112157.QAA27162@caip.rutgers.edu>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Wed, Feb 11, 1998 at 04:57:39PM -0500, Kaveh R. Ghazi wrote:
> +++ egcs-980129/gcc/f/expr.c Tue Feb 3 15:50:59 1998
> @@ -8761,10 +8761,12 @@
> else
> { /* The normal stuff. */
> if (nbt == lbt)
> - if (nbt == rbt)
> - nkt = ffeinfo_kindtype_max (nbt, lkt, rkt);
> - else
> - nkt = lkt;
> + {
> + if (nbt == rbt)
> + nkt = ffeinfo_kindtype_max (nbt, lkt, rkt);
> + else
> + nkt = lkt;
> + }
> else if (nbt == rbt)
> nkt = rkt;
> else
It would be my preference that the pieces of the patch like this,
in which the if-then-else tree is full, _not_ be installed. This
will remind us that we should fix the bug in the warning code.
r~