Hi Bruno, > Le 18 mars 2019 à 22:03, Bruno Haible <br...@clisp.org> a écrit : > > Hi Akim, > >> Also, the relationship with noreturn.h is not completely clear for >> me either. > > There are a couple of comment in noreturn.h lines 33..41. But I agree, > some text in the documentation would be better. > >> Clang 7 pretends to be GCC 4.2 (__GNUC__ __GNUC_MINOR__). > >> For instance I see it already has the above fix for >> GCC 4.7, but in a different way. >> >> /* Use ISO C++11 syntax when the compiler supports it. */ >> # if (__cplusplus >= 201103 && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ >> || (_MSC_VER >= 1900) >> # define _GL_NORETURN_FUNC [[noreturn]] > > Right, this snippet gets clang++ and MSVC++ support right. How about this > patch?
Yes, I agree this is the best option so far, thanks!