From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: "Kaveh R. Ghazi" Cc: egcs@cygnus.com Subject: Re: egcs-980129, fixed ambiguous `else' warnings in the gcc/f/ dir. Date: Fri, 13 Feb 1998 02:04:00 -0000 Message-id: <25018.887354387@hurl.cygnus.com> References: <199802112157.QAA27162@caip.rutgers.edu> X-SW-Source: 1998-02/msg00594.html In message < 199802112157.QAA27162@caip.rutgers.edu >you write: > This patch cleans up the ambiguous `else' warnings in the > egcs/gcc/f/ directory. Thanks. I've installed the patch. As I mentioned in a previous message, if the if-else warning is giving false positives, then that's a bug and we should put a test in the testsuite for it -- not leave in non-conforming code in the g77 backend. Additionally, most (all?) of the changes I saw in this patch fixed the exact kind of problem that that warning was supposed to catch ie if if else Now, the C language says exactly how this is supposed to be parsed, so it is not ambigious, but it *is* poor practice to write such code and is a violation of the GNU coding standards. I believe this is the case that the if-else warning is supposed to be catching... jeff