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.

Alexandre wrote:
> 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.

That wouldn't be hard to do.

> 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.

Is there a GNATS entry (or URL for the gcc-bugs email) for the testcase?


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