bug-indent
[Top][All Lists]
Advanced

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

Bug#527450: indent breaks C code ! (fwd)


From: Santiago Vila
Subject: Bug#527450: indent breaks C code ! (fwd)
Date: Fri, 8 May 2009 11:51:49 +0200 (CEST)

Hello.

I received this from the Debian bug system.
[ Please keep the Cc: lines when replying. Thanks ].

---------- Forwarded message ----------
From: Xavier Bestel <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Thu, 07 May 2009 17:39:32 +0200
Subject: Bug#527450: indent breaks C code !

Package: indent
Version: 2.2.10-1
Severity: important


Hi,

when feeding this line:

        a += - -1;

indent transforms it to:

        a += --1;

which hasn't the same meaning at all (instead of a unary minus on a negative 
constant, it's a predecrementation of a constant) and in this example isn't 
even legal C code.

It's quite a serious issue.

Thanks,
        Xav

[...]




reply via email to

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