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

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