This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH for 3.4/4.0] Fix PR14479, 19487 (reject valid anonymous enum)
- From: "Giovanni Bajo" <rasky at develer dot com>
- To: <lerdsuwa at users dot sf dot net>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 21 Jan 2005 17:57:24 +0100
- Subject: Re: [C++ PATCH for 3.4/4.0] Fix PR14479, 19487 (reject valid anonymous enum)
- References: <41F12861.7090807@users.sf.net>
Kriang Lerdsuwanakij <lerdsuwa@users.sf.net> wrote:
>> In the new parser, we already have cp_parser_check_template_parameters
>> that do the same thing. So the function maybe_check_template_type,
>> only used in one place in the front-end, is considered redundant
>> and can be removed completely.
Since you are it, can you tweak a little cp_parser_check_template_parameters
to be more informative and mention something about its context (%qT of the
template would help for instance)? This is especially useful for nested
templates and in case of preprocessor abuse (quite common nowadays).
--
Giovanni Bajo