From patchwork Tue Jun 24 14:42:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Sutton X-Patchwork-Id: 363481 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 357E514007C for ; Wed, 25 Jun 2014 00:43:26 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=olXyZBjcowsf9Hxi8e1sUdmwzX7os+YMIdRjzzYKdBS+hl VCQOPJTIryYopYJauWDyxy6Eh7Fb0U6SnhZprI9MMkEBzjv0mRoOnN45xDdhyNZ9 f9rErqNJfOE1/4sNWJJQQ87mnmU62G5TRRoZHq8H7mHlEWQKhR3MeZW9YK+sQ= 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=czcgBLMAHw/3CtB6VslrlT95hio=; b=N7w/7deVRmuuUYyb2o3L BjprngXkyk9bg1O7cJMpJpl5S2ugaj8NhUy1Iwxprzw/tU3PCVeh/fZWACJQCDec S7On2HVU5PN8hBFFelZIC3Fpp9PPPl6HdEOW2C5bNPV2H9KqRIt9+U2jDeP9UXsZ jhzXZuk7Ew/X+eyci+vFSiw= Received: (qmail 23278 invoked by alias); 24 Jun 2014 14:43:13 -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 23188 invoked by uid 89); 24 Jun 2014 14:43:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f170.google.com Received: from mail-vc0-f170.google.com (HELO mail-vc0-f170.google.com) (209.85.220.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 24 Jun 2014 14:42:42 +0000 Received: by mail-vc0-f170.google.com with SMTP id hy10so416066vcb.15 for ; Tue, 24 Jun 2014 07:42:40 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr1076818vcm.11.1403620960152; Tue, 24 Jun 2014 07:42:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.30.227 with HTTP; Tue, 24 Jun 2014 07:42:20 -0700 (PDT) From: Andrew Sutton Date: Tue, 24 Jun 2014 10:42:20 -0400 Message-ID: Subject: [c++-concepts] small pretty printing fix To: gcc-patches This helps improve debug output. When pretty printing template args including a placeholder, show instead of a dump_expr error. 2014-06-24 Andrew Sutton * gcc/cp/error.C (dump_expr): Pretty print placeholder to improve debug output. Committed as r211942. Andrew Index: gcc/cp/error.c =================================================================== --- gcc/cp/error.c (revision 211415) +++ gcc/cp/error.c (working copy) @@ -2656,6 +2656,10 @@ dump_expr (cxx_pretty_printer *pp, tree case CONSTEXPR_EXPR: pp_cxx_constexpr_expr (cxx_pp, t); + case PLACEHOLDER_EXPR: + pp_cxx_ws_string (cxx_pp, ""); + break; + /* This list is incomplete, but should suffice for now. It is very important that `sorry' does not call `report_error_function'. That could cause an infinite loop. */