From patchwork Tue Jul 3 04:09:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Hope X-Patchwork-Id: 168680 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 F13C42C00B6 for ; Tue, 3 Jul 2012 14:09:48 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1341893389; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=jXOVW/nuKVuMXhCEVQWrqnxt/lU=; b=ca1zMJc5koqgggC bevtW/UIejo4uI64jaVio/mEPHUajsnUqAZgFZpRdy4yahTe3Z7oexAEzkOue6Jr flsotEdroUan48XtFG2Oo/AjTNktZtH0kxgNrJoHwyqfwk0e63pVI8QvcrNmRyGF WPkxUxxpa/8OQaturXsBNeWAryfE= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Rf4oZVbb4pin8EFKVXzHB9Nba36/5YH3uHLP3+lY/NDGszA6Edurcw9PZcs5NF 56NQoxylysxtxZDdsCtonSou6u4SC1cyGtxlYpOIU5aUX1NMXfVWAXXXsl7Fzulx BXmCBTVaQda9n366a5C28vZPaBfQTlpuUNzDWTgpTHdCk=; Received: (qmail 1985 invoked by alias); 3 Jul 2012 04:09:39 -0000 Received: (qmail 1975 invoked by uid 22791); 3 Jul 2012 04:09:37 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Jul 2012 04:09:23 +0000 Received: by pbbrq2 with SMTP id rq2so8804492pbb.20 for ; Mon, 02 Jul 2012 21:09:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=rRycg7hoGT46YhnZczwbLm14m+/PluFdQUxYvNvU3cg=; b=mXfD5fwcNyBhOAXIkhXTD7F2pFT70hNxV5GiXq4GNH7hHdIvlnLsN65hV40lqbiS5G sVdlWGphD8N+/hqHLfgOLPw2zlUExh5SuvtCSY+Z9n54qouQBLcG2kaZVQUcACQoBm90 vT73B/6VqMWxfPBjNa0swb2qTGN4dYXhbk3J5OJ+nKZacw/0r1aJttDJCVguzOpvNbgJ MEsHB03VRb1L72VjgBsn4Qva5I10DXRaAcoY4nZOkD0Q2NvgQR4G//2B6cnrS3uOQixA MJks8BbpMd4enepGsPANcaI0MwHa9rh6+oypZN4FMgEQqkani8FkFukJNV1wHXAJqdqM Z5kA== Received: by 10.68.227.198 with SMTP id sc6mr3572316pbc.138.1341288563128; Mon, 02 Jul 2012 21:09:23 -0700 (PDT) Received: from [192.168.2.126] (204.47.255.123.static.snap.net.nz. [123.255.47.204]) by mx.google.com with ESMTPS id qd2sm14566335pbb.29.2012.07.02.21.09.20 (version=SSLv3 cipher=OTHER); Mon, 02 Jul 2012 21:09:22 -0700 (PDT) Message-ID: <4FF2706E.6090809@linaro.org> Date: Tue, 03 Jul 2012 16:09:18 +1200 From: Michael Hope User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [PATCH, 4.6] Unsupported c++-11 selector in nullptr28.C X-Gm-Message-State: ALoCoQmlkLBZMsYzpYZeXSdfV70s/+Sbr83ej+qPw6ruuR+Ej2LzzzWoEWpfXh+9nI5HcIJb1Uzf X-IsSubscribed: yes 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 This patch fixes a selector fault in the new g++.dg/cpp0x/nullptr28.C test by changing the c++-11 target selector to the equivalent options. The test itself was backported from trunk in r188953 to fix PR52988. Tested on x86_64-linux. The ERROR changes to a PASS. OK for 4.6? -- Michael gcc/testsuite/ 2012-07-03 Michael Hope PR c++/53814 * g++.dg/cpp0x/nullptr28.C: Change selector for explicit options. diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C index 05fbe57..4cc790d 100644 --- a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C +++ b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C @@ -1,4 +1,5 @@ -// { dg-do run { target c++11 } } +// { dg-do run } +// { dg-options "-std=c++0x -pedantic-errors" } typedef decltype(nullptr) nullptr_t;