From patchwork Mon Jun 10 16:09:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 250284 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 32D612C0095 for ; Tue, 11 Jun 2013 02:09:57 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=DIgPQ2GOn2h1Vc4BZ5jZ9WbADXo6mQw9R1WkpvwKLejMb8 tBtfKh8/yPFOOBSNlWLK6mwsUduKLMY1DOwhhoH9brsmE7QdDOEqofW1E25Ae6jE 85zojJvC/b+98SC+1Y4hJpL+i4x8Vq7wsR4Ahg7ytOWqB8GFUkbF4RyY3yJlk= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=1+8lOP7Dzn8rbE540KWkWkFsTHw=; b=RMlmAvc27e67X3NSq2EO zhZ8m2o5/TgIAHYe1FgMhMldTkWFUQ7ei6hACtQ3NAPzw0HgkFw7Kk7HsCNwWugG SRiwrSEoElvy06EmyPjnxkNy/xSsejIfagWjGtTVH9pE9e/nu/Xcc4YDED31aVV+ VRpN14Z5gDY8AWM85pnv5fk= Received: (qmail 23485 invoked by alias); 10 Jun 2013 16:09:51 -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 23476 invoked by uid 89); 10 Jun 2013 16:09:51 -0000 X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_HOSTKARMA_NO, RP_MATCHES_RCVD, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 10 Jun 2013 16:09:50 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5AG9kJ0025965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Jun 2013 16:09:46 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5AG9lnb011547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Jun 2013 16:09:48 GMT Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5AG9l1x009224 for ; Mon, 10 Jun 2013 16:09:47 GMT Received: from poldo4.casa (/79.17.189.84) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 Jun 2013 09:09:47 -0700 Message-ID: <51B5FA49.4030705@oracle.com> Date: Mon, 10 Jun 2013 18:09:45 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ testcase, committed] PR 52440 X-Virus-Found: No Hi, committed to mainline. Thanks, Paolo. //////////////////// 2013-06-10 Paolo Carlini PR c++/52440 * g++.dg/cpp0x/pr52440.C: New. Index: g++.dg/cpp0x/pr52440.C =================================================================== --- g++.dg/cpp0x/pr52440.C (revision 0) +++ g++.dg/cpp0x/pr52440.C (working copy) @@ -0,0 +1,27 @@ +// PR c++/52440 +// { dg-do compile { target c++11 } } + +template +struct V +{ + typedef void type; +}; + +template +struct X +{ + template + static constexpr bool always_true() + { + return true; + } + + template()>::type> + X(U &&) {} +}; + +int main() +{ + X x(42); +}