https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101937

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:6c25932ac399423b09b730fb8f894ada568deb2a

commit r12-2933-g6c25932ac399423b09b730fb8f894ada568deb2a
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Aug 16 15:35:58 2021 +0100

    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 <jwak...@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.

Reply via email to