From patchwork Thu Sep 19 18:37:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Butcher X-Patchwork-Id: 276038 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id ED5C12C007A for ; Fri, 20 Sep 2013 04:38:54 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=uoBKVPlcuFc03LGA4CMqPJu8KfZpRIVVNbL/siwUzdK1o8m1FulcZ KyhWk9NRuFYuK4y7zaKdkIAWqGk7N/JK0/wtwyh9YodCq0FifkH1c+VckGqWeeJR GHe9C7B4NL2WcO+UBCPPSHnfpK3O/ipQcg5FhF7Bcsdl2cInqWzBVg= 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:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=sln2g/QeNSpiLWZlD41QiRlcD3I=; b=vhUiiwy6nlvMtqH83spy f4St/Zj0pSrtYxba1Y/U4HLNNaO+qLTKK0f34ZQE7yuKBXXoZsFN6tb87SM13/t4 2ZdPLH1syzbrd6EHJSbMZOepDHmr+AnqOgZcr5pJB6y1yIPAbaOJKm29yBuiqVRC VAuSjxQ3rzyZXRGSribDx1c= Received: (qmail 11091 invoked by alias); 19 Sep 2013 18:38:05 -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 11006 invoked by uid 89); 19 Sep 2013 18:38:05 -0000 Received: from mail-we0-f182.google.com (HELO mail-we0-f182.google.com) (74.125.82.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 19 Sep 2013 18:38:05 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00, FREEMAIL_FROM, KHOP_THREADED autolearn=ham version=3.3.2 X-HELO: mail-we0-f182.google.com Received: by mail-we0-f182.google.com with SMTP id q59so8256068wes.41 for ; Thu, 19 Sep 2013 11:38:02 -0700 (PDT) X-Received: by 10.194.22.97 with SMTP id c1mr2576287wjf.43.1379615881945; Thu, 19 Sep 2013 11:38:01 -0700 (PDT) Received: from sphere.lan (munkyhouse.force9.co.uk. [84.92.244.81]) by mx.google.com with ESMTPSA id i8sm11854983wib.1.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 11:38:01 -0700 (PDT) From: Adam Butcher To: gcc-patches@gcc.gnu.org Cc: Jason Merrill , Adam Butcher Subject: [C++1y] [PATCH 4/4] Generate more intuitive name for 'auto' parameters. Date: Thu, 19 Sep 2013 19:37:47 +0100 Message-Id: <1379615867-21555-5-git-send-email-adam@jessamine.co.uk> In-Reply-To: <1379615867-21555-1-git-send-email-adam@jessamine.co.uk> References: <1379615867-21555-1-git-send-email-adam@jessamine.co.uk> * parser.c (make_generic_type_name): Spell generic type names '' rather than '__GenN'. --- gcc/cp/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 148e2f2..a54496a 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -28902,7 +28902,7 @@ make_generic_type_name () { char buf[32]; static int i = 0; - sprintf (buf, "__GenT%d", i); + sprintf (buf, "", ++i); return get_identifier (buf); }