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.