http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #9 from Dmitry 2012-08-16 19:55:57
UTC ---
C standard:
The header defines the macro setjmp, and declares one function and
one type, for bypassing the normal function call and return discipline.
OK. I agree with you. But one moment.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #8 from Daniel Krügler
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 defines t
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #7 from Paolo Carlini 2012-08-16
19:51:54 UTC ---
Nothing changes, because the C++ standard says that macros which can be
implemented as functions in C must be actual macros in C++ (and setjmp is
*explicitly* mentioned)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #6 from Dmitry 2012-08-16 19:49:27
UTC ---
I think standard of C std libs declares setjmp as a function. So, it should be
function.
Some code:
__BEGIN_NAMESPACE_STD
typedef struct __jmp_buf_tag jmp_buf[1];
extern int setjmp (jmp_bu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #5 from Daniel Krügler
2012-08-16 19:46:16 UTC ---
(In reply to comment #4)
> Sorry, but I think standard declares that all function should be in std.
No. 17.6.1.2 [headers] only says so for non-macros:
"In the C++ standard library,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #4 from Dmitry 2012-08-16 19:43:15
UTC ---
Sorry, but I think standard declares that all function should be in std.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
Daniel Krügler changed:
What|Removed |Added
CC||daniel.kruegler at
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #2 from Daniel Krügler
2012-08-16 19:38:16 UTC ---
The problem seems still to exist in gcc 4.8.0 20120729 (experimental).
Just to be sure that this is not due to a badly formed error description I
tested to compile the folowing code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|