bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU Indent 2.2.9 unary minus erroneous whitespace removal


From: Simon
Subject: GNU Indent 2.2.9 unary minus erroneous whitespace removal
Date: Tue, 25 Jul 2006 00:49:44 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060615)

GNU Indent 2.2.9 erroneously removes / fails to reinsert whitespace between a pair of unary minus operators; thus changing double negation "- -x" into a self decrement "--x"; for example changing the legal code below into illegal code:

$ cat example.c

int main(void)
{
 return - -0;
}

$ indent --verbose example.c
There were 5 non-blank output lines and 0 comments
$ cat example.c

int
main (void)
{
 return --0;
}


or worst still, performing silent until runtime corruption of a variable.

rgds
Simon.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]