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: aoliva at redhat dot com (Alexandre Oliva)
- Subject: Re: C++ PATCH: Improved parser diagnosis
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Tue, 20 Mar 2001 09:47:15 -0800 (PST)
- Cc: pfeifer at dbai dot tuwien dot ac dot at (Gerald Pfeifer), gcc-patches at gcc dot gnu dot org, jbuck at synopsys dot COM (Joe Buck)
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?