Trivial fix suggested by Peter Johansson in:
https://lists.gnu.org/r/autoconf/2024-05/msg00004.html
* lib/autoconf/c.m4 (_AC_CXX_CXX11_TEST_MAIN):
Do not test assigning u8"..." to char const *, as this
runs afoul of C++20.
C11 and later. Programs can use AC_C_VARARRAYS and __STDC_NO_VLA__
to use VLAs if available.
+** Notable bug fixes
+
+*** AC_PROG_CXX no longer rejects C++20 compilers
+merely because C++20 is not upward-compatible with C++11.
+
* Noteworthy changes in release 2.72 (2023-12-22) [release]
** Backward incompatibilities
test_template<::test_template<int>> v(test_template<int>(12));
}
{
- // Unicode literals
- char const *utf8 = u8"UTF-8 string \u2500";
+ // Unicode literals. Do not test u8"..." as C++20 would reject it.
char16_t const *utf16 = u"UTF-8 string \u2500";
char32_t const *utf32 = U"UTF-32 string \u2500";
}