This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51932] Cannot use std::errno with <cerrno>
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Jan 2012 14:23:20 +0000
- Subject: [Bug libstdc++/51932] Cannot use std::errno with <cerrno>
- Auto-submitted: auto-generated
- References: <bug-51932-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51932
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-21 14:23:20 UTC ---
There are lots of things you can find by searching the web, that doesn't make
them a good idea ;)
I'm not sure if it's required to fail, but it's certainly not required to
compile either, and I don't see how it would be possible to make it work when
errno is defined as a macro that usually expands to something like
(*__thread_errno())
It is rejected by Solaris Studio CC and by the Comeau and LLVM online demos
too.