From patchwork Mon Feb 20 05:54:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 729724 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vRXx84pW1z9s85 for ; Mon, 20 Feb 2017 16:58:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="uXModzPA"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=kMLpHjx77VSRpGveeuICxSGiJ7GVkmuwClu5HdRi2E1D8P yV+NJRGX2IlYwqaHpa86jLLpU9j0wEeqlZXzCt8Kuw7QZm6s8eNvcXMxpLguSOOE GtTYEBy2YufYM0AAL95JltIsB6gxb30EdKOV+WTgmFkJy+fjP/2u6367WYND8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=RnDG/fg2izQgEaO+H+z/3768Caw=; b=uXModzPA3KJ3omxHvXvc g+pQTzFEq1FsRe5hbupwVfdKRlJLdRta7xNtDCCfBzm6WNPPxxsaskG+fCfFYd27 XVdYLMcJbNu2C1LRyb91n9CAnM/opPEQj95hO4MJgIwan+NpoE79tEq9EBuNlAbc JvkmF7fJZGjR5mBqW5N1V1o= Received: (qmail 25474 invoked by alias); 20 Feb 2017 05:56:17 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 24372 invoked by uid 89); 20 Feb 2017 05:54:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.2 spammy=sk:excepti, (unknown) X-HELO: mail-ot0-f174.google.com Received: from mail-ot0-f174.google.com (HELO mail-ot0-f174.google.com) (74.125.82.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Feb 2017 05:54:42 +0000 Received: by mail-ot0-f174.google.com with SMTP id k4so42204489otc.0 for ; Sun, 19 Feb 2017 21:54:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OL7khr8drSSUoyvYFrB3J/dI4x435saav6riNdrxduc=; b=ZclDgu5KCQwtTZcMQFf1OdNNiKvKTbnVTrvsIwU+EmyhmVdmyNifpkamnqBfRi6UUA JJNlML9dr4Ue432RCUvlm0ToNKjZio7AObbf5SENyuxpgu471h6TDd/mjjwp6TuN3psb Fx0P6fcFHbeTNuPHe4ErvZ1Q5X3lzrbwIviJ85KvrIx8pYH0y/2XFefZDRFujASxbEOX hQqCZSP/aRlol9G9lPrph6Q0/U5KJaEe/vO9Hkl7jn6IodyhUzPLCbxhBwrbnmJVMmLm XxmkjPzSV0CCGNJFZekqyk9daoEVwBEUqpypxSNPjXwHqqFs9Z13Ac2/BVji1YPme4q+ 35nQ== X-Gm-Message-State: AMke39msiItGGwn7dxhaaVwl4PvpG6V8RMxpuSKvJ9wrnhK2ge0fSheIV4dAeAJf+3J66N9MI/9IwRjaRsJNjT7G X-Received: by 10.157.1.105 with SMTP id 96mr3508082otu.33.1487570080766; Sun, 19 Feb 2017 21:54:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.5.4 with HTTP; Sun, 19 Feb 2017 21:54:20 -0800 (PST) From: Jason Merrill Date: Sun, 19 Feb 2017 21:54:20 -0800 Message-ID: Subject: C++ PATCH for c++/79400, confusing suggestion of 'noexcept' To: gcc-patches List X-IsSubscribed: yes It was pointed out that suggesting noexcept as an alternative to throw(type) doesn't make much sense, since throw(type) would imply noexcept(false), which is the default. So let's just remove the suggestion. Tested x86_64-pc-linux-gnu, applying to trunk. commit 41d5a30463d1f62dfb64ec953b662e1eda5faf74 Author: Jason Merrill Date: Sun Feb 19 14:47:17 2017 -0800 PR c++/79400 - confusing suggestion of 'noexcept' * parser.c (cp_parser_exception_specification_opt): Remove suggestion for deprecated dynamic exception-specification. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 4656b4f..72597f3 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -23926,8 +23926,8 @@ cp_parser_exception_specification_opt (cp_parser* parser) } else if (cxx_dialect >= cxx11 && !in_system_header_at (loc)) warning_at (loc, OPT_Wdeprecated, - "dynamic exception specifications are deprecated in C++11;" - " use % instead"); + "dynamic exception specifications are deprecated in " + "C++11"); } /* In C++17, throw() is equivalent to noexcept (true). throw() is deprecated in C++11 and above as well, but is still widely used,