From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22293 invoked by alias); 23 Sep 2013 21:50:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 22278 invoked by uid 89); 23 Sep 2013 21:50:13 -0000 Received: from mail-lb0-f177.google.com (HELO mail-lb0-f177.google.com) (209.85.217.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 23 Sep 2013 21:50:13 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f177.google.com Received: by mail-lb0-f177.google.com with SMTP id w7so3112083lbi.22 for ; Mon, 23 Sep 2013 14:50:09 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.181.100 with SMTP id dv4mr3358639lbc.34.1379973009219; Mon, 23 Sep 2013 14:50:09 -0700 (PDT) Received: by 10.112.101.7 with HTTP; Mon, 23 Sep 2013 14:50:09 -0700 (PDT) In-Reply-To: <20130923114717.1033f2b8.jklowden@schemamania.org> References: <20130921164609.GC3086@a.lan> <20130921174229.GD3086@a.lan> <20130923000355.fa2a964c.jklowden@schemamania.org> <20130923114717.1033f2b8.jklowden@schemamania.org> Date: Mon, 23 Sep 2013 21:50:00 -0000 Message-ID: Subject: Re: how to make gcc warn about arithmetic signed overflow From: Jonathan Wakely To: "James K. Lowden" Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00163.txt.bz2 On 23 September 2013 16:47, James K. Lowden wrote: > > 7.1.6 is itself mutable, it turns out. My yellowed ARM, copyright > 1990, is considerably more relaxed on the question. (And considerably > easier to read. I don't know how anyone learns C++ these days, so > dense is the technical terminology.) The standard isn't meant to be a tutorial and noone should try to learn C++ from the standard. Stroustrup's 4th edition of The C++ Programming Language is much easier to read (but not all that much shorter) than the standard.