]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Use qualified-id for class member constant [PR101937]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 16 Aug 2021 14:35:58 +0000 (15:35 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 16 Aug 2021 16:52:02 +0000 (17:52 +0100)
commit6c25932ac399423b09b730fb8f894ada568deb2a
tree351d4c9262127bcd5638b57c3398c7e62621697a
parentdb853ff78a34fef25bc16133e0367a64526f9f4e
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.
libstdc++-v3/src/c++11/debug.cc
This page took 0.065823 seconds and 6 git commands to generate.