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

            Bug ID: 115119
           Summary: Typo in
                    _Grapheme_cluster_view::_Iterator::operator++(int)
           Product: gcc
           Version: 14.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: davidfromonline at gmail dot com
  Target Milestone: ---

The following code in unicode.h:

```c++
        constexpr _Iterator
        operator++(int)
        {
          auto __tmp = *this;
          ++this;
          return __tmp;
        }
```


Should instead be:

```c++
        constexpr _Iterator
        operator++(int)
        {
          auto __tmp = *this;
          ++*this;
          return __tmp;
        }
```

(`++*this` instead of `++this`).

Reply via email to