220 9828 <87iorea8pr.fsf@euclid.axiomatics.org> article
Path: news.gmane.org!not-for-mail
From: Gabriel Dos Reis <gdr@axiomatics.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: auto variable templates?
Date: Sun, 16 Mar 2014 00:44:32 -0700
Organization: axiomatics.org
Lines: 39
Approved: news@gmane.org
Message-ID: <87iorea8pr.fsf@euclid.axiomatics.org>
References: <ec829ec4-9d4e-4d5c-8673-a58d46fec41b@isocpp.org>
	<CAOfiQqkf4N3Pga8V7n6as-CBdWWGJeKh-0s8ONxsdpRtamo-Cg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1394955866 18009 80.91.229.3 (16 Mar 2014 07:44:26 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 16 Mar 2014 07:44:26 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCSYNQUB2UHRBYNMSWMQKGQEXSUW3IQ@isocpp.org Sun Mar 16 08:44:36 2014
Return-path: <std-proposals+bncBCSYNQUB2UHRBYNMSWMQKGQEXSUW3IQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f72.google.com ([209.85.219.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCSYNQUB2UHRBYNMSWMQKGQEXSUW3IQ@isocpp.org>)
	id 1WP5kJ-0000ja-Ef
	for gclcip-std-proposals@m.gmane.org; Sun, 16 Mar 2014 08:44:35 +0100
Original-Received: by mail-oa0-f72.google.com with SMTP id g12sf17700791oah.3
        for <gclcip-std-proposals@m.gmane.org>; Sun, 16 Mar 2014 00:44:34 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:in-reply-to:organization
         :references:sender:date:message-id:lines:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=vMqNLmgEUxjNg/ZoR6uLlKLT1Ab1TSqy8B1/jA/cQZk=;
        b=MYxSnTOIK10XFG4V4ZNqLXnq1Hr2XVsr5AP0qj3YDZoOdaTiRdjpnytkvZ8u/rRmsv
         qNdktFgbwIz6VI1WjYsSiZGDlce/DHlFZtwgTRXBP0U3C8lDXwXqMonML48zypgiIdSL
         uEUXzIW4VzliTWm/EChRqFMinfp/JDMX6lZnLmYYnUP6vFz+xDNmjDVLe9OFc315ssrf
         aVES62DJp4xKN3Yr13YlpOV6/bxZYZ0l6KweSBF+qgtUZ1x4x08L/qNBcR5iPKNAMjFP
         LV4uboq8s/hZcTtEC0GJiDescjBvkIDEfetpYj4hlOcyfvpw3e+gB4Q89eQQyJW+IX80
         l0QA==
X-Gm-Message-State: ALoCoQlD42lL7ulVBrmA01OXFm7cMvQFx+rbeWDUypgYyA4M02An9iLe/PmZvgjJ0X097wO6xJkf
X-Received: by 10.43.135.4 with SMTP id ie4mr5976500icc.1.1394955874331;
        Sun, 16 Mar 2014 00:44:34 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.19.165 with SMTP id g5ls501601obe.59.gmail; Sun, 16 Mar
 2014 00:44:33 -0700 (PDT)
X-Received: by 10.182.213.166 with SMTP id nt6mr149017obc.53.1394955873010;
        Sun, 16 Mar 2014 00:44:33 -0700 (PDT)
Original-Received: from mail.axiomatics.org ([2600:3c00::f03c:91ff:feae:e0e6])
        by mx.google.com with ESMTP id kb7si7860598oeb.29.2014.03.16.00.44.32
        for <std-proposals@isocpp.org>;
        Sun, 16 Mar 2014 00:44:32 -0700 (PDT)
Received-SPF: neutral (google.com: 2600:3c00::f03c:91ff:feae:e0e6 is neither permitted nor denied by best guess record for domain of gdr@axiomatics.org) client-ip=2600:3c00::f03c:91ff:feae:e0e6;
Original-Received: from euclid.axiomatics.org (localhost [IPv6:::1])
	by mail.axiomatics.org (Postfix) with ESMTP id 86056E70D
	for <std-proposals@isocpp.org>; Sun, 16 Mar 2014 00:44:32 -0700 (PDT)
In-Reply-To: <CAOfiQqkf4N3Pga8V7n6as-CBdWWGJeKh-0s8ONxsdpRtamo-Cg@mail.gmail.com>
	(Richard Smith's message of "Sat, 15 Mar 2014 16:38:44 -0700")
Original-Sender: gdr@axiomatics.org
Original-Lines: 30
X-Original-Sender: gdr@axiomatics.org
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 2600:3c00::f03c:91ff:feae:e0e6 is neither permitted nor denied
 by best guess record for domain of gdr@axiomatics.org) smtp.mail=gdr@axiomatics.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:9828
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9828>

Richard Smith <richard@metafoo.co.uk> writes:

| On Sat, Mar 15, 2014 at 1:46 PM, Andrew Tomazos
| <andrewtomazos@gmail.com> wrote:
| 
|     Is the following supposed to be ill-formed according to the
|     current draft?
|     
|     
|     
|     
| template<class> constexpr auto X = 42;
| 
| int main()
| {
|         static_assert(X<int> == 42, "");
| }
|     
|     
|     [dcl.spec.auto]/4 says that auto is allowed when declaring
|     variables in namespace-scope, but doesn't explicitly say in
|     variable templates - consequently this is ill-formed.
| 
| 
| A specialization of a variable template is a variable, so this is
| allowed.

Indeed.

-- Gaby

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
