From patchwork Thu Apr 2 08:35:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 457563 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6E4F014008F for ; Thu, 2 Apr 2015 19:35:48 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=jiIVxQhZ; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=tZ/wHLUwjXeGYp7BE6tUvWDHSN18iZid5WMevDAjwRJIuEfZxAtqI EsLg5pLT7taz6OXPTLJmq49ANroQHBooNQcTE9kshI7xbCskweH7Xmm1zFG5NT8p lNfMSxkyDRqvtBR0YX35Yn4vg73RDCdcv4PnTQ0ExGPnTwF1rdMqjI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=nalmkVRpW0oxWxMXUGOsClEhupY=; b=jiIVxQhZuluN+zvLPws3 vi9Kst/FNgJwx58NpIdxgEZ/PmEPrNRnbj3hfIlPrlFqk1rkOfskgiM0xk0fkfMO jwJv+f0XYCViTj+xuxXOqjpC9c4NP/cKz2jNBFxAGILSqwG5rBpoObBEdXCIfdva j+Oa6MAtcXmekmHeJJ8qjOA= 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@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, 2 Apr 2015 10:35:35 +0200 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-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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. Marek 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