From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94588 invoked by alias); 2 Apr 2015 08:35:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 93660 invoked by uid 89); 2 Apr 2015 08:35:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 02 Apr 2015 08:35:39 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t328ZcdZ013823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 2 Apr 2015 04:35:38 -0400 Received: from redhat.com (ovpn-204-30.brq.redhat.com [10.40.204.30]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t328ZZhY011607 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 2 Apr 2015 04:35:38 -0400 Date: Thu, 02 Apr 2015 08:35:00 -0000 From: Marek Polacek To: GCC Patches Subject: [PATCH] Fix a test with bogus size_t type Message-ID: <20150402083534.GT25731@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-04/txt/msg00046.txt.bz2 We are now more strict when accepting user-defined initializer_lists; in particular, we now require sizetype, not just any integral type. The following test failed with -m32, because it had a bogus type of size_t, with -m32 it usually should be unsigned int, not unsigned long. Test passes now with both -m32/-m64, ok for trunk? 2015-04-02 Marek Polacek * g++.dg/cpp0x/pr57101.C: Use proper type for size_t. diff --git gcc/testsuite/g++.dg/cpp0x/pr57101.C gcc/testsuite/g++.dg/cpp0x/pr57101.C index 94b576f..c0fc966 100644 --- gcc/testsuite/g++.dg/cpp0x/pr57101.C +++ gcc/testsuite/g++.dg/cpp0x/pr57101.C @@ -1,7 +1,7 @@ // { dg-do compile { target c++11 } } // { dg-options "-fcompare-debug" } -typedef long unsigned size_t; +typedef __SIZE_TYPE__ size_t; namespace { template < typename _Tp, _Tp __v > struct integral_constant Marek