]> gcc.gnu.org Git - gcc.git/commit
c++: Fix template parm ICE [PR 98297]
authorNathan Sidwell <nathan@acm.org>
Wed, 16 Dec 2020 19:49:41 +0000 (11:49 -0800)
committerNathan Sidwell <nathan@acm.org>
Wed, 16 Dec 2020 21:08:38 +0000 (13:08 -0800)
commit02092ec9a00273716052732eb9ee343eef6bdc1b
treec2a44b790d2e3b3ab762e8231f657fac5a3ed753
parentbf26930c88074b9101c9d62d59a5db70e7a37b49
c++: Fix template parm ICE [PR 98297]

I think this is nonsense code, we seem to be naming an instantiation
of a template template parm.  But this fixes the ICE.  Perhaps we
should diagnose the issue earlier?

gcc/cp/
* parser.c (cp_parser_elaborated_type_specifier): Test
BOUND_TEMPLATE_TEMPLATE_PARM before checking for instantiation.
gcc/testsuite/
* g++.dg/template/pr98297.C: New.
gcc/cp/parser.c
gcc/testsuite/g++.dg/template/pr98297.C [new file with mode: 0644]
This page took 0.05367 seconds and 5 git commands to generate.