From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18044 invoked by alias); 17 Nov 2010 10:44:09 -0000 Received: (qmail 18036 invoked by uid 22791); 17 Nov 2010 10:44:08 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Nov 2010 10:44:04 +0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46513] Request: Warning for use of unsafe string handling functions X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 17 Nov 2010 10:47:00 -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 X-SW-Source: 2010-11/txt/msg02182.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46513 --- Comment #5 from Jonathan Wakely 2010-11-17 10:43:51 UTC --- (In reply to comment #3) > I know "finding the replacement" is not a GCC issue, but perhaps folks who need > to the *nix safe string gear can use TR24731-2 (not TR24731-1), which is POSIX > and includes strl* and friends. TR24731-2 does include functions from POSIX, but the only string handling ones in n1337 are strdup and strndup, not strl* - and I might be wrong but I don't know of any plans to add strl* to POSIX. Besides, anything in C1x will not make it into a C++ standard for many years, we're still trying to get C++0x finished and new features won't be added now. Maybe this request should be for the C front end? Otherwise you're requesting warnings in C++ code about functions for which there are no portable, standardised alternative available.