c++: Add missing verify_type_context call [PR97904]
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 23 Nov 2020 09:06:59 +0000 (09:06 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 23 Nov 2020 09:06:59 +0000 (09:06 +0000)
commitd3585f5d0df47ffa453f5fe436fdf588301e5314
tree682d19f61a9e2af42c63af4ce0b349b86061e5fa
parentb1a5e1b2bcff890bcdf8568a2cbbe24eedb28ab4
c++: Add missing verify_type_context call [PR97904]

When adding the verify_type_context target hook, I'd missed
a site that needs to check an array element type.

gcc/cp/
PR c++/97904
* pt.c (tsubst): Use verify_type_context to check the type
of an array element.

gcc/testsuite/
PR c++/97904
* g++.dg/ext/sve-sizeless-1.C: Add more template tests.
* g++.dg/ext/sve-sizeless-2.C: Likewise.
gcc/cp/pt.c
gcc/testsuite/g++.dg/ext/sve-sizeless-1.C
gcc/testsuite/g++.dg/ext/sve-sizeless-2.C