public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-25 20:32 ` redi at gcc dot gnu.org
2021-09-30 19:19 ` redi at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2021-09-25 20:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This should be done in the C++ standard, not just as a libstdc++ extension.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
2021-09-25 20:32 ` [Bug libstdc++/59769] please add ios_base::__noreplace redi at gcc dot gnu.org
@ 2021-09-30 19:19 ` redi at gcc dot gnu.org
2021-11-26 8:03 ` redi at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2021-09-30 19:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-09-30
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I have started a discussion about getting this into the standard.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
2021-09-25 20:32 ` [Bug libstdc++/59769] please add ios_base::__noreplace redi at gcc dot gnu.org
2021-09-30 19:19 ` redi at gcc dot gnu.org
@ 2021-11-26 8:03 ` redi at gcc dot gnu.org
2021-12-08 20:54 ` redi at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2021-11-26 8:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2467r0.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-11-26 8:03 ` redi at gcc dot gnu.org
@ 2021-12-08 20:54 ` redi at gcc dot gnu.org
2021-12-09 23:29 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2021-12-08 20:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 51953
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51953&action=edit
Implement std::ios_base::__noreplace for C++23
TODO: tests
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-12-08 20:54 ` redi at gcc dot gnu.org
@ 2021-12-09 23:29 ` cvs-commit at gcc dot gnu.org
2021-12-09 23:34 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-12-09 23:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:a219139e986a4200a9105d7c1fa63735d2945994
commit r12-5878-ga219139e986a4200a9105d7c1fa63735d2945994
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 8 20:58:11 2021 +0000
libstdc++: Implement std::ios_base::noreplace for C++23 [PR59769]
This implements my P2467R0 proposal to support opening an fstream in
exclusive mode. The new constant is also supported pre-C++23 as
std::ios_base::__noreplace.
This proposal hasn't been approved for C++23 yet, but I am confident it
will be, as this is restoring a feture found in pre-ISO C++ iostreams
implementations (and still present in the MSVC library as _Noreplace).
If the proposal fails for C++23 we can remove the ios::noreplace
name and just keep ios::__noreplace as an extension.
libstdc++-v3/ChangeLog:
PR libstdc++/59769
* config/io/basic_file_stdio.cc (fopen_mode): Add support for
exclusive mode.
* include/bits/ios_base.h (_S_noreplace): Define new enumerator.
(ios_base::__noreplace): Define.
(ios_base::noreplace): Define for C++23.
* include/std/version (__cpp_lib_ios_noreplace): Define.
* testsuite/27_io/basic_ofstream/open/char/noreplace.cc: New test.
* testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc: New
test.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2021-12-09 23:29 ` cvs-commit at gcc dot gnu.org
@ 2021-12-09 23:34 ` redi at gcc dot gnu.org
2022-03-26 21:22 ` redi at gcc dot gnu.org
2022-03-26 21:22 ` redi at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2021-12-09 23:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Implemented for GCC 12.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2021-12-09 23:34 ` redi at gcc dot gnu.org
@ 2022-03-26 21:22 ` redi at gcc dot gnu.org
2022-03-26 21:22 ` redi at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2022-03-26 21:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Approved for C++23
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libstdc++/59769] please add ios_base::__noreplace
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2022-03-26 21:22 ` redi at gcc dot gnu.org
@ 2022-03-26 21:22 ` redi at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2022-03-26 21:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59769
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
... by LEWG and LWG. It still has to pass at plenary to get into the draft.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-03-26 21:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-59769-4@http.gcc.gnu.org/bugzilla/>
2021-09-25 20:32 ` [Bug libstdc++/59769] please add ios_base::__noreplace redi at gcc dot gnu.org
2021-09-30 19:19 ` redi at gcc dot gnu.org
2021-11-26 8:03 ` redi at gcc dot gnu.org
2021-12-08 20:54 ` redi at gcc dot gnu.org
2021-12-09 23:29 ` cvs-commit at gcc dot gnu.org
2021-12-09 23:34 ` redi at gcc dot gnu.org
2022-03-26 21:22 ` redi at gcc dot gnu.org
2022-03-26 21:22 ` 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).