Reported by Akim Demaille.
* lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
[[noreturn]] would not work, use _Noreturn instead.
+2019-03-23 Bruno Haible <bruno@clisp.org>
+
+ noreturn: In C++ mode with clang, use _Noreturn as fallback.
+ Reported by Akim Demaille.
+ * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
+ [[noreturn]] would not work, use _Noreturn instead.
+
2019-03-22 Akim Demaille <akim@lrde.epita.fr>
libtextstyle-optional: Fix compiler warnings.
# if (__cplusplus >= 201103 && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
|| (_MSC_VER >= 1900)
# define _GL_NORETURN_FUNC [[noreturn]]
+ /* clang++ supports the _Noreturn keyword, but g++ doesn't. */
+# elif defined __clang__
+# define _GL_NORETURN_FUNC _Noreturn
# else
# define _GL_NORETURN_FUNC /* empty */
# endif