This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [var-template] Accept variable template declaration
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Gabriel Dos Reis <gdr at axiomatics dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 1 Apr 2013 16:11:40 -0500
- Subject: Re: [var-template] Accept variable template declaration
- References: <87ip49et6x dot fsf at euclid dot axiomatics dot org> <515638D3 dot 8010404 at redhat dot com> <87hajt61f7 dot fsf at euclid dot axiomatics dot org> <5157C5EC dot 1020501 at redhat dot com> <CAAiZkiB0W9MONnt_CgjpmYCOzVi_sxDUMG4Nk-G_=zKOVhqedQ at mail dot gmail dot com> <5159F4DB dot 8020404 at redhat dot com>
On Mon, Apr 1, 2013 at 3:58 PM, Jason Merrill <jason@redhat.com> wrote:
> On 04/01/2013 04:53 PM, Gabriel Dos Reis wrote:
>>
>> On Sun, Mar 31, 2013 at 12:13 AM, Jason Merrill <jason@redhat.com> wrote:
>>>
>>>
>>> On 03/29/2013 10:56 PM, Gabriel Dos Reis wrote:
>>>>
>>>>
>>>> int wanted = num_template_headers_for_class (ctx);
>>>
>>>
>>> I think you want to add one to wanted if decl is a primary template.
>>
>>
>> OK but I am a little bit dense here: why is that necessary?
>
>
> By 'primary' I mean something that is itself a template, not just a member
> of a class template. Previously variables couldn't be primary templates,
> but I believe your proposal is to change that; in that case, we should
> expect to see a template header for such a template, in addition to any
> headers for enclosing classes.
Ah, yes; got it. Thanks!
-- Gaby