From 9114b267a8abbfa593848b3daa73aa72f65c8fbe Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 20 May 2019 06:27:55 +0200 Subject: [PATCH] c++: beware of to_string portability issues Reported by Bruno Haible. http://lists.gnu.org/archive/html/bug-bison/2019-05/msg00033.html * m4/bison-cxx-std.m4 (_BISON_CXXSTD_11_snippet): Check it. --- m4/bison-cxx-std.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m4/bison-cxx-std.m4 b/m4/bison-cxx-std.m4 index 1756c7d9..afef998a 100644 --- a/m4/bison-cxx-std.m4 +++ b/m4/bison-cxx-std.m4 @@ -63,6 +63,9 @@ m4_define([_BISON_CXXSTD_11_snippet], for (int r: std::set{1, 2}) continue; } + + // GCC 4.8.2 on Solaris 11.3 does not support to_string. + auto e = std::to_string(42); ]) m4_define([_BISON_CXXSTD_14_snippet],