------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-17 16:44 ------- The patch looks correct although the code is messy. With the patch, when is_friend is true and processing_specialization is false, we no longer count the number of template header to see if there are too many - but we've already done that in cp_parser_check_template_parameters. The code duplication in cp_parser_check_template_parameters and current_tmpl_spec_kind could be removed in GCC 4.1.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18733