From patchwork Tue Jun 5 03:12:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 162963 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 0661CB6EEB for ; Tue, 5 Jun 2012 13:12:29 +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=1339470750; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=HPbsj8bobCUfR7SwsQm3kmsRg7I=; b=Lza2S1lPkxwgtJC EGqvCLdCqXQMNZbxypD1M634sZiUzYrDg/sw2kRWYVEJByfq32DuEjMH+2FtASC6 +IiKia6kao98c5cPiEWmVkllAjXt6GRAqibdkC3WvQqbqyxcUtAj4OwIrF/F7007 dGjyj3F9GZfGDEZKHBIGsvIH4js0= 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:Received:From:Content-Type:Content-Transfer-Encoding:Subject:Date:Message-Id:To:Mime-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=eZ4J+FcalC6BB+f13NdKgYO0daMACkI+U4L/QJFaZoVVJW6nBziIItxC0zpZqX 4Wra5yZOGp2nqYGtO9Wz+Bip/fXd5ziya/uW0i+VG3DlLXf4YKms5z0+uLx0qlIM Ky1KK0vRq6rrrLzZGymWMWNZPr/c52cmqzh77T71KcZG4=; Received: (qmail 25246 invoked by alias); 5 Jun 2012 03:12:25 -0000 Received: (qmail 25234 invoked by uid 22791); 5 Jun 2012 03:12:24 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from qmta05.emeryville.ca.mail.comcast.net (HELO qmta05.emeryville.ca.mail.comcast.net) (76.96.30.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jun 2012 03:12:12 +0000 Received: from omta17.emeryville.ca.mail.comcast.net ([76.96.30.73]) by qmta05.emeryville.ca.mail.comcast.net with comcast id JT861j0031afHeLA5TCB6a; Tue, 05 Jun 2012 03:12:11 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta17.emeryville.ca.mail.comcast.net with comcast id JTCA1j00T0BKwT48dTCBLB; Tue, 05 Jun 2012 03:12:11 +0000 From: Mike Stump Subject: Fix g++.dg/cpp0x/regress/template-function1.C Date: Mon, 4 Jun 2012 20:12:10 -0700 Message-Id: To: GCC Patches Mime-Version: 1.0 (Apple Message framework v1084) 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 Continuing fixes in the series... I'll add () where they influence the semantics of what is tested. I'll see about removing them when they are unnecessary because the underlying issue is fixed. Index: testsuite/g++.dg/cpp0x/regress/template-function1.C =================================================================== --- testsuite/g++.dg/cpp0x/regress/template-function1.C (revision 188225) +++ testsuite/g++.dg/cpp0x/regress/template-function1.C (working copy) @@ -23,7 +23,8 @@ char c1[1]; C c; template struct D {}; -template struct D<__func__, N> {}; // { dg-error "cannot appear|is invalid|is not a valid|function scope|constant expression" } +template struct D<__func__, N> {}; // { dg-error "(cannot appear|is invalid|is not a valid|function scope|constant expression)" } + // { dg-warning "function scope" "function scope" { target *-*-* } 26 } char d1[1]; D d;