PR c++/20118 missing template<> causes weird errors
Manuel López-Ibáñez
lopezibanez@gmail.com
Tue Aug 12 15:30:00 GMT 2008
Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
--enable-languages=all,ada
OK for trunk?
2008-08-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c++/20118
* diagnostic.c (error_at): New.
* toplev.h (error_at): Declare.
cp/
* parser.c (cp_parser_check_template_parameters): Take a
cp_declarator parameter.
(cp_parser_elaborated_type_specifier): Update to
cp_parser_check_template_parameters.
(cp_parser_class_head): Likewise.
(cp_parser_check_declarator_template_parameters): Likewise.
(cp_parser_check_template_parameters): Handle first the non-error
conditions. Give more accurate diagnostics if a declarator is
given.
testsuite/
* g++.dg/parse/pr20118.C: New.
* g++.dg/template/spec16.C: Update.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-pr20118.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080812/b9fa8437/attachment.ksh>
More information about the Gcc-patches
mailing list