This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Improved parser diagnosis
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Subject: Re: C++ PATCH: Improved parser diagnosis
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 20 Mar 2001 06:54:49 -0300
- Cc: <gcc-patches at gcc dot gnu dot org>, Joe Buck <jbuck at synopsys dot COM>
- Organization: GCC Team, Red Hat
- References: <Pine.BSF.4.33.0103200906380.82841-100000@deneb.dbai.tuwien.ac.at>
On Mar 20, 2001, Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:
> x.cc:3: 'vector' is used as a type, but is not defined as a type.
Hmm... Strictly speaking, it's not being used as a type, but as a
template class. I think it wouldn't be too hard to tell one from the
other, giving template_arg_list_ignore a boolean value indicating
whether or not it matched a template argument list, then emitting an
appropriate argument list.
Do you think it would be too hard to extend this patch so as to cover
base class names too? We've got yet another bug report about the
parse error it triggers a few days ago.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me