• Bug#1096662: fteqcc: FTBFS with gcc-15: true, false are keywords in C23

    From Simon McVittie@21:1/5 to Matthias Klose on Wed Mar 19 12:10:02 2025
    Control: retitle -1 fteqcc: FTBFS with gcc-15: true, false are keywords in C23

    On Mon, 17 Feb 2025 at 17:14:18 +0000, Matthias Klose wrote:
    The package fails to build in a test rebuild on at least amd64 with >gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
    severity of this report will be raised before the forky release.
    ...
    GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.

    The actual build failure is not in the part of the log Matthias quoted,
    but it seems to be this:

    In file included from cmdlib.h:6,
    from qcc.h:7,
    from qccmain.c:4:
    progsint.h:25:22: error: cannot use keyword ‘false’ as enumeration constant
    25 | typedef enum{false, true} boolean;
    | ^~~~~

    Probably compiling with -std=gnu17 would be a workaround for this.

    smcv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)