This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: can't parse qualified member names
- To: Vaclav Barta <vbar at comp dot cz>
- Subject: Re: can't parse qualified member names
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 Jun 1999 02:32:26 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com
- References: <37687380.4EF9BE93@comp.cz>
On Jun 17, 1999, Vaclav Barta <vbar@comp.cz> wrote:
> int a = opt.COptions<int>::Get("a");
Try:
int a = opt.template COptions<int>::Get("a");
The `template' keyword should only be needed when the postfix
expression before `.' (or `->') is template-dependent, but the g++
parser gets lost if you don't help it in this case.
It's probably a good idea to use UNNEEDED_TEMPLATE at that point, and
define it to `template' now, because when the gcc parser is fixed, it
might start to reject this hack.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists