This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Improved parser diagnosis
Alexandre Oliva <aoliva@redhat.com> writes:
| 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.
Agreed -- I thought the same thing. But since the parser will go a
complete rewrite, would the following be ok for you
x.cc:3: undeclared name 'vector' used in a type-specifier
?
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com