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++/54289] setjmp isn't included into std namespace


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289

--- Comment #8 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2012-08-16 19:54:10 UTC ---
(In reply to comment #6)
> I think standard of C std libs declares setjmp as a function. So, it should be
> function.

I'm not looking at any code, but C says:

"The header <setjmp.h> defines the macro setjmp, [..]"

And in C++ (quoting from C++11) [headers]:

"Names which are defined as macros in C shall be defined as macros in the C++
standard library, even if C grants license for implementation as functions. [
Note: The names defined as macros in C include the following: assert, offsetof,
setjmp, va_arg, va_end, and va_start. âend note ]"

For this discussion it is completely irrelevant whether the macro expands to a
function or something else.


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