public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw
@ 2021-04-06 16:24 redi at gcc dot gnu.org
  2021-04-06 16:25 ` [Bug libstdc++/99942] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2021-04-06 16:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99942
           Summary: [8/9/10/11 Regression] COW std::string::data() is
                    noexcept but can throw
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

The C++17 non-const data() was fixed for PR 86169 so that it un-shares the
string if needed. However, this means it can reallocate, and so should not be
marked noexcept.

The right fix is probably just to remove 'noexcept', but we might also want to
consider not providing that member function at all for the COW string.

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

* [Bug libstdc++/99942] [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
@ 2021-04-06 16:25 ` redi at gcc dot gnu.org
  2021-04-08 14:23 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2021-04-06 16:25 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |7.3.0, 8.1.0
   Target Milestone|---                         |8.5
      Known to fail|                            |10.1.0, 11.0, 7.4.0, 8.2.0,
                   |                            |9.1.0

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

* [Bug libstdc++/99942] [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
  2021-04-06 16:25 ` [Bug libstdc++/99942] " redi at gcc dot gnu.org
@ 2021-04-08 14:23 ` rguenth at gcc dot gnu.org
  2021-05-14  9:54 ` [Bug libstdc++/99942] [9/10/11/12 " jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-08 14:23 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug libstdc++/99942] [9/10/11/12 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
  2021-04-06 16:25 ` [Bug libstdc++/99942] " redi at gcc dot gnu.org
  2021-04-08 14:23 ` rguenth at gcc dot gnu.org
@ 2021-05-14  9:54 ` jakub at gcc dot gnu.org
  2021-06-01  8:20 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14  9:54 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|8.5                         |9.4

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.

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

* [Bug libstdc++/99942] [9/10/11/12 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-05-14  9:54 ` [Bug libstdc++/99942] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01  8:20 ` rguenth at gcc dot gnu.org
  2021-09-25 20:11 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:20 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.4                         |9.5

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug libstdc++/99942] [9/10/11/12 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-06-01  8:20 ` rguenth at gcc dot gnu.org
@ 2021-09-25 20:11 ` redi at gcc dot gnu.org
  2022-05-27  9:44 ` [Bug libstdc++/99942] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2021-09-25 20:11 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-09-25
             Status|UNCONFIRMED                 |NEW

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

* [Bug libstdc++/99942] [10/11/12/13 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-09-25 20:11 ` redi at gcc dot gnu.org
@ 2022-05-27  9:44 ` rguenth at gcc dot gnu.org
  2022-06-28 10:44 ` jakub at gcc dot gnu.org
  2023-07-07 10:39 ` [Bug libstdc++/99942] [11/12/13/14 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:44 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug libstdc++/99942] [10/11/12/13 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2022-05-27  9:44 ` [Bug libstdc++/99942] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:44 ` jakub at gcc dot gnu.org
  2023-07-07 10:39 ` [Bug libstdc++/99942] [11/12/13/14 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug libstdc++/99942] [11/12/13/14 Regression] COW std::string::data() is noexcept but can throw
  2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2022-06-28 10:44 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:39 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

end of thread, other threads:[~2023-07-07 10:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 16:24 [Bug libstdc++/99942] New: [8/9/10/11 Regression] COW std::string::data() is noexcept but can throw redi at gcc dot gnu.org
2021-04-06 16:25 ` [Bug libstdc++/99942] " redi at gcc dot gnu.org
2021-04-08 14:23 ` rguenth at gcc dot gnu.org
2021-05-14  9:54 ` [Bug libstdc++/99942] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:20 ` rguenth at gcc dot gnu.org
2021-09-25 20:11 ` redi at gcc dot gnu.org
2022-05-27  9:44 ` [Bug libstdc++/99942] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:44 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug libstdc++/99942] [11/12/13/14 " rguenth 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).