From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125760 invoked by alias); 12 Jan 2016 05:20:43 -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 125242 invoked by uid 89); 12 Jan 2016 05:20:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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; Tue, 12 Jan 2016 05:20:29 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 4CEC58E011; Tue, 12 Jan 2016 05:20:28 +0000 (UTC) Received: from [10.10.116.37] (ovpn-116-37.rdu2.redhat.com [10.10.116.37]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0C5KRPA015932; Tue, 12 Jan 2016 00:20:28 -0500 Subject: Re: [PATCH] c++/58109 - alignas() fails to compile with constant expression To: Martin Sebor , Gcc Patch List References: <567A07A0.1010008@gmail.com> From: Jason Merrill Message-ID: <56948D1B.4030403@redhat.com> Date: Tue, 12 Jan 2016 05:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <567A07A0.1010008@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-01/txt/msg00665.txt.bz2 On 12/22/2015 09:32 PM, Martin Sebor wrote: > + if (is_attribute_p ("aligned", name) > + || is_attribute_p ("vector_size", name)) > + { > + /* Attribute argument may be a dependent indentifier. */ > + if (tree t = args ? TREE_VALUE (args) : NULL_TREE) > + if (value_dependent_expression_p (t) > + || type_dependent_expression_p (t)) > + return true; > + } Instead of this, is_late_template_attribute should be fixed to check attribute_takes_identifier_p. Jason