From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30195 invoked by alias); 22 Apr 2015 00:17:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29889 invoked by uid 48); 22 Apr 2015 00:17:48 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/61580] stoi function unknown on W7/Cygwin/x86_64 Date: Wed, 22 Apr 2015 00:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01771.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61580 --- Comment #3 from Jonathan Wakely --- The problem in this case is that newlib only defines C99 functions for C99 or C++11, but the _GLIBCXX_USE_C99 tests in acinclude.m4 are compiled with -std=gnu++98. As discussed previously (on the mailing list IIRC) we need to test whether C99 functions are available in C++98 mode and test again whether they are available in C++11 mode. For std::stoi() we don't care if they are missing in C++98 mode, as long as they are present in C++11 mode (which is true for newlib).