diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-01-16 20:56:46 +1100 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-01-17 09:40:42 +1100 |
commit | fe1649eea76f193732d22ec022a35326523eb37a (patch) | |
tree | 739eaebd7ad3655f3bbdffc647634d22db75ad2a /gcc/tree-vect-loop-manip.cc | |
parent | 7d397269753ca70256ce309b4d3081154e8c7a65 (diff) | |
download | gcc-fe1649eea76f193732d22ec022a35326523eb37a.zip gcc-fe1649eea76f193732d22ec022a35326523eb37a.tar.gz gcc-fe1649eea76f193732d22ec022a35326523eb37a.tar.bz2 |
c++: Fix ENABLE_SCOPE_CHECKING printing
The lists of scope kinds used by ENABLE_SCOPE_CHECKING don't seem to
have been updated in a long while, causing ICEs and confusing output.
This patch brings the list into line.
Additionally, the comment on 'explicit_spec_p' says that the flag is
only valid if kind is 'sk_template_parms', so we rewrite the condition
to be more obviously correct here.
gcc/cp/ChangeLog:
* name-lookup.h (enum scope_kind): Add 'sk_count'.
* name-lookup.cc (cp_binding_level_descriptor): Add missing
scope kinds. Add assertion that the list is up to date. Fix
handling of explicit_spec_p.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/tree-vect-loop-manip.cc')
0 files changed, 0 insertions, 0 deletions