[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread dmitriy-hshg at mail dot ru
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.

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread daniel.kruegler at googlemail dot com
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

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread paolo.carlini at oracle dot com
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)

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread dmitriy-hshg at mail dot ru
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

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread daniel.kruegler at googlemail dot com
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,

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread dmitriy-hshg at mail dot ru
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.

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler at |

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread daniel.kruegler at googlemail dot com
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

[Bug libstdc++/54289] setjmp isn't included into std namespace

2012-08-16 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|