This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/54289] setjmp isn't included into std namespace
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Aug 2012 19:54:10 +0000
- Subject: [Bug libstdc++/54289] setjmp isn't included into std namespace
- Auto-submitted: auto-generated
- References: <bug-54289-4@http.gcc.gnu.org/bugzilla/>
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.