This commit is contained in:
2024-02-22 22:57:27 -06:00
parent a8c1a10cab
commit 00a9fda814
3 changed files with 23 additions and 27 deletions

View File

@@ -80,6 +80,11 @@ struct KiwiExpression {
double constant;
int term_count;
Constraint* owner;
// https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
// Although using one-element arrays this way is discouraged, GCC handles accesses to
// trailing one-element array members analogously to zero-length arrays.
// The only reason avoiding FAM here is to support older MSVC.
// Otherwise this is a non-issue.
KiwiTerm terms[1];
};