diff options
author | Jason Merrill <jason@redhat.com> | 2020-05-21 10:27:11 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-05-21 18:04:22 -0400 |
commit | c37b1442fd2d3f9ee47bef69dcf154bd216f0f86 (patch) | |
tree | 5a70c79c26f85756d6066699aeef0e61f0bc89a4 /contrib/gcc-changelog/git_commit.py | |
parent | beb019d346b903c16b9fd349937de444b6a8b6c0 (diff) | |
download | gcc-c37b1442fd2d3f9ee47bef69dcf154bd216f0f86.zip gcc-c37b1442fd2d3f9ee47bef69dcf154bd216f0f86.tar.gz gcc-c37b1442fd2d3f9ee47bef69dcf154bd216f0f86.tar.bz2 |
c++: Check constant array bounds later.
We give a better diagnostic for non-constant array bounds in
compute_array_index_type_loc, we don't need to diagnose it in the parser.
But to avoid a regression on parse/varmod1.C we need to actually check
non-dependent expressions in a template.
gcc/cp/ChangeLog:
* decl.c (compute_array_index_type_loc): Diagnose expressions
in a template that can't be constant.
* parser.c (cp_parser_direct_declarator): Don't check
non-constant array bounds here.
gcc/testsuite/ChangeLog:
* c-c++-common/gomp/depend-iterator-2.c: Adjust.
* g++.dg/ext/vla1.C: Adjust.
* g++.dg/template/array9.C: Adjust.
* g++.dg/template/error41.C: Adjust.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions