This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ PATCH: Improved parser diagnosis


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]