From patchwork Mon May 2 14:22:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Gorbachev X-Patchwork-Id: 93666 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]) by ozlabs.org (Postfix) with SMTP id 50D27B6F94 for ; Tue, 3 May 2011 00:22:22 +1000 (EST) Received: (qmail 15651 invoked by alias); 2 May 2011 14:22:20 -0000 Received: (qmail 15643 invoked by uid 22791); 2 May 2011 14:22:19 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, TW_CX X-Spam-Check-By: sourceware.org Received: from mail-pv0-f175.google.com (HELO mail-pv0-f175.google.com) (74.125.83.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 May 2011 14:22:05 +0000 Received: by pvc30 with SMTP id 30so3679658pvc.20 for ; Mon, 02 May 2011 07:22:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.58.12 with SMTP id l12mr3267982wfk.102.1304346125275; Mon, 02 May 2011 07:22:05 -0700 (PDT) Received: by 10.142.216.11 with HTTP; Mon, 2 May 2011 07:22:05 -0700 (PDT) In-Reply-To: <201105021556.03084.ebotcazou@adacore.com> References: <201105021556.03084.ebotcazou@adacore.com> Date: Mon, 2 May 2011 18:22:05 +0400 Message-ID: Subject: Re: Trivial patch to fix build with --enable-build-with-cxx From: Dmitry Gorbachev To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org 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 Uh, there is another one: ../../gcc-4.7/gcc/cp/parser.c: In function 'tree_node* cp_parser_init_declarator(cp_parser*, cp_decl_specifier_seq*, VEC_deferred_access_check_gc*, bool, bool, int, bool*, tree_node**)': ../../gcc-4.7/gcc/cp/parser.c:14612:19: error: converting 'false' to pointer type 'tree' [-Werror=conversion-null] 2011-05-02 Dmitry Gorbachev * parser.c (cp_parser_init_declarator): Replace false by NULL. --- gcc/cp/parser.c +++ gcc/cp/parser.c @@ -14609,7 +14609,7 @@ if (pushed_scope) { pop_scope (pushed_scope); - pushed_scope = false; + pushed_scope = NULL; } decl = grokfield (declarator, decl_specifiers, initializer, !is_non_constant_init,