re PR c++/77638 (ICE on x86_64-linux-gnu (internal compiler error: tree check: expect...
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Sep 2016 15:17:41 +0000 (17:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Sep 2016 15:17:41 +0000 (17:17 +0200)
commiteaf1ece1315e4fc7356e9fb24e07c4bd86c73f14
tree7d5967c69ac06d2e7a5f0e9354b946b4a56ee352
parent590b62e90d6d86e68442ffa608c7c6e5653736d5
re PR c++/77638 (ICE on x86_64-linux-gnu (internal compiler error: tree check: expected tree that contains ‘decl common’ structure, have ‘error_mark’ in cp_parser_template_declaration_after_parameters, at cp/parser.c:25722))

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.

From-SVN: r240266
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/udlit-tmpl-arg-neg2.C [new file with mode: 0644]