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 15:53:38 -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>
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?
-- Gaby