https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84423
--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Tue Oct 9 21:16:09 2018 New Revision: 264996 URL: https://gcc.gnu.org/viewcvs?rev=264996&root=gcc&view=rev Log: /cp 2018-10-09 Paolo Carlini <paolo.carl...@oracle.com> PR c++/84423 * pt.c (convert_template_argument): Immediately return error_mark_node if the second argument is erroneous. * parser.c (cp_parser_type_id): Add location_t * parameter. (cp_parser_type_id_1): Likewise. (cp_parser_alias_declaration): Adjust cp_parser_type_id call, obtain the location of the type and save it. (cp_parser_template_type_arg): Adjust. (cp_parser_trailing_type_id): Likewise. * decl.c (grokdeclarator): Improve error message for 'auto' in alias declaration. /testsuite 2018-10-09 Paolo Carlini <paolo.carl...@oracle.com> PR c++/84423 * g++.dg/concepts/pr84423-1.C: New. * g++.dg/concepts/pr84423-2.C: Likewise. * g++.dg/cpp0x/auto39.C: Test location too. * g++.dg/cpp0x/auto9.C: Likewise. * g++.dg/cpp1y/pr60384.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/concepts/pr84423-1.C trunk/gcc/testsuite/g++.dg/concepts/pr84423-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/auto39.C trunk/gcc/testsuite/g++.dg/cpp0x/auto9.C trunk/gcc/testsuite/g++.dg/cpp1y/pr60384.C