This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51932] Cannot use std::errno with <cerrno>


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]