From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Dos Reis To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/3063: Explicit specification of a template-argument gives syntax error inside a template function. Date: Thu, 07 Jun 2001 15:46:00 -0000 Message-id: <20010607224601.10386.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00258.html List-Id: The following reply was made to PR c++/3063; it has been noted by GNATS. From: Gabriel Dos Reis To: Phil Edwards Cc: nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/3063: Explicit specification of a template-argument gives syntax error inside a template function. Date: 08 Jun 2001 00:41:24 +0200 Phil Edwards writes: | The following reply was made to PR c++/3063; it has been noted by GNATS. | | From: Phil Edwards | To: Martin Sebor | Cc: gcc-gnats@gcc.gnu.org | Subject: Re: c++/3063: Explicit specification of a template-argument gives syntax error inside a template function. | Date: Thu, 7 Jun 2001 16:35:23 -0400 | | On Thu, Jun 07, 2001 at 09:46:01PM -0000, Martin Sebor wrote: | > Only in a dependent context. `a' here doesn't depend on a template | > parameter so `template' isn't required. I believe this is a known | > bug in the parser (someone else acknowledged it on this list in | > the past). | | After reading 14.2 I think you're right. Note that adding 'template' | as I wrote it, still works around the problem. That is nonetheless an unfortunate workaround for a bug in the parser. Anyway, that is one of the things we plan to fix in the parser rewrite (soon). -- Gaby