"Unknown Type Name" build failure(s) — clang 4.0.1

Some type detections are failing or wrong assumptions were made. For example, with strace, old configure are doing some tests on the bool (stdbool.h) declaration but fails on:
conftest.c:84:16: error: initializer element is not a compile-time constant
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Provided by the macro AC_HEADER_STDBOOL but removed in recent release of autoconf
PackageVersionSupposed error messageFull log Bug report
freebsd-libs 10.3~svn296373-10./libutil.h:62:9: error: unknown type name '__size_t'; did you mean '__ssize_t'? Log
musescore 2.0.3+dfsg1-2midiinstrument.h:26:14: error: unknown type name 'QString' Log 752124
telegram-desktop 1.1.0-1qthelp_url.h:25:8: error: unknown type name 'QString' Log
xbase64 3.1.2-12dbfutil1.cpp:157:3: error: unknown type name 'constexpr' Log

4 errors