diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-08-16 15:35:58 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-08-16 17:52:02 +0100 |
commit | 6c25932ac399423b09b730fb8f894ada568deb2a (patch) | |
tree | 351d4c9262127bcd5638b57c3398c7e62621697a /gcc | |
parent | db853ff78a34fef25bc16133e0367a64526f9f4e (diff) | |
download | gcc-6c25932ac399423b09b730fb8f894ada568deb2a.zip gcc-6c25932ac399423b09b730fb8f894ada568deb2a.tar.gz gcc-6c25932ac399423b09b730fb8f894ada568deb2a.tar.bz2 |
libstdc++: Use qualified-id for class member constant [PR101937]
The expression ctx._M_indent is not a constant expression when ctx is a
reference parameter, even though _M_indent is an enumerator. Rename it
to _S_indent to be consistent with our conventions, and refer to it as
PrintContext::_S_indent to be valid C++ code (at least until P2280 is
accepted as a DR).
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
PR libstdc++/101937
* src/c++11/debug.cc (PrintContext::_M_indent): Replace with a
static data member.
(print_word): Use qualified-id to access it.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions