]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add missing verify_type_context call [PR97904]
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 2 Dec 2020 16:20:36 +0000 (16:20 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 2 Dec 2020 16:20:36 +0000 (16:20 +0000)
commit20fc59de1e21aaddc9ae08bc9d7e060df6706579
tree8fc7c561e261a04ab0416c119201d7f81904dd08
parent2e17e920b0c22f432440ff83e53fd564a0473118
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.

(cherry picked from commit d3585f5d0df47ffa453f5fe436fdf588301e5314)
gcc/cp/pt.c
gcc/testsuite/g++.dg/ext/sve-sizeless-1.C
gcc/testsuite/g++.dg/ext/sve-sizeless-2.C