diff options
author | wangpc <pc.wang@linux.alibaba.com> | 2021-09-18 13:53:09 +0800 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-09-20 20:52:46 -0400 |
commit | 56c24f18cce0da6405c5071b838844447fa81ac8 (patch) | |
tree | 16a11409e01b62870a1786052a8b4709f36d6078 /gcc/fortran/cpp.h | |
parent | 624980241ec69afc7b354f81cc64a1fd77131f3e (diff) | |
download | gcc-56c24f18cce0da6405c5071b838844447fa81ac8.zip gcc-56c24f18cce0da6405c5071b838844447fa81ac8.tar.gz gcc-56c24f18cce0da6405c5071b838844447fa81ac8.tar.bz2 |
C++: add type checking for static local vector variable in template
This patch moves verify_type_context from start_decl_1 to cp_finish_decl to
do more type checking such as static local vector variable in C++ template.
2021-08-06 wangpc <pc.wang@linux.alibaba.com>
gcc/cp/ChangeLog
* decl.c (start_decl_1): Move verify_type_context to ...
(cp_finish_decl): ... to here.
gcc/testsuite/ChangeLog
* g++.target/aarch64/sve/static-var-in-template.C: New test.
Diffstat (limited to 'gcc/fortran/cpp.h')
0 files changed, 0 insertions, 0 deletions