The little bool of doom

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A debugging story about how upgrading to GCC 15 with C23 as the default standard broke a DOOM port in Fedora. The issue stemmed from a custom boolean enum type conflicting with C23's new `bool` keyword. The attempted fix using `_Bool` revealed undefined behavior: initializing boolean fields with -1 (via memset) created values

15m read timeFrom blog.svgames.pl
Post cover image
Table of contents
Two times false does not make rightA fairly standard changeThe engine goes boomDo they really have a law for that?References

Sort: