public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/115119] New: Typo in _Grapheme_cluster_view::_Iterator::operator++(int)
@ 2024-05-16 15:43 davidfromonline at gmail dot com
  2024-05-16 15:46 ` [Bug libstdc++/115119] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: davidfromonline at gmail dot com @ 2024-05-16 15:43 UTC (permalink / raw)
  To: gcc-bugs

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`).

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-05-17 13:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-16 15:43 [Bug libstdc++/115119] New: Typo in _Grapheme_cluster_view::_Iterator::operator++(int) davidfromonline at gmail dot com
2024-05-16 15:46 ` [Bug libstdc++/115119] " pinskia at gcc dot gnu.org
2024-05-16 15:56 ` redi at gcc dot gnu.org
2024-05-16 16:00 ` redi at gcc dot gnu.org
2024-05-16 16:20 ` redi at gcc dot gnu.org
2024-05-16 18:26 ` jakub at gcc dot gnu.org
2024-05-17 12:43 ` redi at gcc dot gnu.org
2024-05-17 12:47 ` cvs-commit at gcc dot gnu.org
2024-05-17 13:17 ` cvs-commit at gcc dot gnu.org
2024-05-17 13:19 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).