public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/60555] New: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() @ 2014-03-17 19:07 c.m.brandenburg at gmail dot com 2014-03-17 19:08 ` [Bug libstdc++/60555] " c.m.brandenburg at gmail dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: c.m.brandenburg at gmail dot com @ 2014-03-17 19:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555 Bug ID: 60555 Summary: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: c.m.brandenburg at gmail dot com Created attachment 32376 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32376&action=edit Program that exposes the bug. According to the C++ standard, if the value ev corresponds to the POSIX errno value posv, then std::system_category().default_error_condition(ev) should return std::error_condition(posv, generic_category()). The libstdc++ implementation doesn't do this. Instead, it always returns std::error_condition(ev, std::system_category()). Attached is a program that exposes this bug. I've seen this problem on 4.7.2, but an inspection of the source code for 4.8.2 suggests the bug exists for that version too. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/60555] std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() 2014-03-17 19:07 [Bug libstdc++/60555] New: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() c.m.brandenburg at gmail dot com @ 2014-03-17 19:08 ` c.m.brandenburg at gmail dot com 2014-03-18 20:40 ` redi at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: c.m.brandenburg at gmail dot com @ 2014-03-17 19:08 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555 --- Comment #1 from Craig M. Brandenburg <c.m.brandenburg at gmail dot com> --- To be clear, the attached program outputs: "system:No such file or directory". It should output: "generic:No such file or directory". ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/60555] std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() 2014-03-17 19:07 [Bug libstdc++/60555] New: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() c.m.brandenburg at gmail dot com 2014-03-17 19:08 ` [Bug libstdc++/60555] " c.m.brandenburg at gmail dot com @ 2014-03-18 20:40 ` redi at gcc dot gnu.org 2014-09-19 14:01 ` redi at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: redi at gcc dot gnu.org @ 2014-03-18 20:40 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-03-18 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- The standard also says "What constitutes correspondence for any given operating system is unspecified." Confirming as an enhancement, I'll look into fixing this post-4.9 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/60555] std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() 2014-03-17 19:07 [Bug libstdc++/60555] New: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() c.m.brandenburg at gmail dot com 2014-03-17 19:08 ` [Bug libstdc++/60555] " c.m.brandenburg at gmail dot com 2014-03-18 20:40 ` redi at gcc dot gnu.org @ 2014-09-19 14:01 ` redi at gcc dot gnu.org 2015-04-22 12:00 ` jakub at gcc dot gnu.org 2015-07-16 9:12 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: redi at gcc dot gnu.org @ 2014-09-19 14:01 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/60555] std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() 2014-03-17 19:07 [Bug libstdc++/60555] New: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() c.m.brandenburg at gmail dot com ` (2 preceding siblings ...) 2014-09-19 14:01 ` redi at gcc dot gnu.org @ 2015-04-22 12:00 ` jakub at gcc dot gnu.org 2015-07-16 9:12 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2015-04-22 12:00 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.0 |5.2 --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- GCC 5.1 has been released. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/60555] std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() 2014-03-17 19:07 [Bug libstdc++/60555] New: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() c.m.brandenburg at gmail dot com ` (3 preceding siblings ...) 2015-04-22 12:00 ` jakub at gcc dot gnu.org @ 2015-07-16 9:12 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2015-07-16 9:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60555 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.2 |5.3 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC 5.2 is being released, adjusting target milestone to 5.3. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-16 9:12 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-03-17 19:07 [Bug libstdc++/60555] New: std::system_category().default_error_condition() doesn't map system errno values to std::generic_category() c.m.brandenburg at gmail dot com 2014-03-17 19:08 ` [Bug libstdc++/60555] " c.m.brandenburg at gmail dot com 2014-03-18 20:40 ` redi at gcc dot gnu.org 2014-09-19 14:01 ` redi at gcc dot gnu.org 2015-04-22 12:00 ` jakub at gcc dot gnu.org 2015-07-16 9:12 ` 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).