egcs-980129, fixed ambiguous `else' warnings in the gcc/f/ dir.
Jeffrey A Law
law@cygnus.com
Fri Feb 13 02:04:00 GMT 1998
In message < 19980212104038.04732@dot.cygnus.com >you write:
> On Thu, Feb 12, 1998 at 01:30:19PM -0500, Kaveh R. Ghazi wrote:
> > Is it a bug or a feature? Ie, is it good coding style to not
> > use braces even if the if-then-else tree is full?
>
> Coding style aside, the warning tells you that it is ambiguous when
> it is not. If the tree is full, there is exactly one way it can be
> parsed. Thus, a bug, IMO.
Yes, it's a bug. But instead of leaving non-conforming code in the
compiler why don't we add a test to the testsuite?
jeff
More information about the Gcc
mailing list