From patchwork Wed Jul 28 18:14:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 60167 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 26F90B6F0E for ; Thu, 29 Jul 2010 04:14:12 +1000 (EST) Received: (qmail 21125 invoked by alias); 28 Jul 2010 18:14:09 -0000 Received: (qmail 21108 invoked by uid 22791); 28 Jul 2010 18:14:08 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from vsmtp4.tin.it (HELO vsmtp4.tin.it) (212.216.176.224) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jul 2010 18:14:03 +0000 Received: from [192.168.0.4] (79.47.194.87) by vsmtp4.tin.it (8.5.113) id 4BCE3CBE087A442B; Wed, 28 Jul 2010 20:14:00 +0200 Message-ID: <4C50736C.5070108@oracle.com> Date: Wed, 28 Jul 2010 20:14:04 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100520 SUSE/3.0.5 Thunderbird/3.0.5 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Jason Merrill Subject: [C++ Patch] PR 45096 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 Hi, adding the begin and end overloads for initializer_list very slightly changed the behavior of the C++ front-end on this testcase and now the error at line 13 mentions initializer_list<_Tp>, instead of the previous initializer_list. That change seems benign to me and I'm proposing to just tweak a bit the testcase. Patch tested x86_64-linux. Is it ok? Thanks, Paolo. ///////////////// 2010-07-28 Paolo Carlini PR c++/45096 * g++.dg/cpp0x/auto3.C: Tweak dg-error string. Index: g++.dg/cpp0x/auto3.C =================================================================== --- g++.dg/cpp0x/auto3.C (revision 162649) +++ g++.dg/cpp0x/auto3.C (working copy) @@ -10,7 +10,7 @@ auto x; // { dg-error "auto" } auto i = 42, j = 42.0; // { dg-error "auto" } // New CWG issue -auto a[2] = { 1, 2 }; // { dg-error "auto" } +auto a[2] = { 1, 2 }; // { dg-error "initializer_list" } template struct A { };