From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44754 invoked by alias); 9 Oct 2015 17:10:54 -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 44675 invoked by uid 48); 9 Oct 2015 17:10:45 -0000 From: "ylow at graphlab dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/67903] std::locale compatibility between gcc4.9 and gcc5.1 Date: Fri, 09 Oct 2015 17:10: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.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ylow at graphlab dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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-10/txt/msg00717.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67903 --- Comment #4 from Yucheng Low --- I have tried version scripts and it ought to work but I couldn't quite figure out what symbols to hide. In any case, the proposed modification does fix a questionable bit of code in locale.cc (i.e. the resize code path in _M_install_facet is problematic due to the deletion of a placement new). The effect that it resolves a compatibility issue is a pleasant side effect.