tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] initializer element is not constant for float comparison


From: noneofyourbusiness
Subject: [Tinycc-devel] initializer element is not constant for float comparison
Date: Sun, 21 May 2023 13:14:32 +0200

When initializing static variables with the result of float comparisons, tcc 
errors out. This works fine on clang without warning, therefore I assume this 
is a bug. The expression -1.0 < 0 should always evaluate to 1, no?
See attached code for an example.

Attachment: test.c
Description: Text Data


reply via email to

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