https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113520
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://github.com/SWI-Prolog/packages-xpce/commit/641bbb1d83416be2fb910dbffcd6ba32db1c0b8e Was the commit which "fixed" compiling with GCC 4.0 but really it is broken. I suspect the fix is to use s/struct name/struct bname/ here might work. but this is all messy pre-ANSI C code.