https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77638
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 7 22:31:33 2016 New Revision: 243386 URL: https://gcc.gnu.org/viewcvs?rev=243386&root=gcc&view=rev Log: Backported from mainline 2016-09-20 Jakub Jelinek <ja...@redhat.com> PR c++/77638 * parser.c (cp_parser_template_declaration_after_parameter): For 2 argument operator"" template set ok to false for parm == error_mark_node. * g++.dg/cpp0x/udlit-tmpl-arg-neg2.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-arg-neg2.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/parser.c branches/gcc-6-branch/gcc/testsuite/ChangeLog