[Bug c++/33660] gettid has not been declared

2007-10-04 Thread pcarlini at suse dot de
--- Comment #6 from pcarlini at suse dot de 2007-10-04 20:05 --- Try asking for help on some Linux mailing list, because gettid is (or was) a Linux extension, actually. In any case, what is available or not on such system headers has nothing to do with GCC. -- pcarlini at suse dot de

[Bug c++/33660] gettid has not been declared

2007-10-04 Thread razin at avaya dot com
--- Comment #5 from razin at avaya dot com 2007-10-04 19:37 --- Ok. That's just the test. I can remove namespace completely: #include #include #include int main() { gettid(); return 0; } Same result. Actually I figured it will bring up questions, sorry -- razin

[Bug c++/33660] gettid has not been declared

2007-10-04 Thread razin at avaya dot com
--- Comment #4 from razin at avaya dot com 2007-10-04 18:46 --- (In reply to comment #3) > Why should gettid be in namespace std? It's not a standard C++ function, > so the header file declares it to be in the global namespace. > > W. > (In reply to comment #3) > Why should gettid be

[Bug c++/33660] gettid has not been declared

2007-10-04 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2007-10-04 18:41 --- Why should gettid be in namespace std? It's not a standard C++ function, so the header file declares it to be in the global namespace. W. -- bangerth at dealii dot org changed: What|Removed

[Bug c++/33660] gettid has not been declared

2007-10-04 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-10-04 18:40 --- And this is not a bug with GCC or libstdc++ as gettid is an GNU libc extension. Try using gettid instead of std::gettid. Doing that and qualifying endl with std:: allows for this program to compile. -- pinskia

[Bug c++/33660] gettid has not been declared

2007-10-04 Thread razin at avaya dot com
--- Comment #1 from razin at avaya dot com 2007-10-04 18:35 --- Created an attachment (id=14296) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14296&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33660