[Bug 264297] _POSIX_C_SOURCE=200809L causes failure in #include <sstream>
Date: Fri, 27 May 2022 20:19:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264297 Bug ID: 264297 Summary: _POSIX_C_SOURCE=200809L causes failure in #include <sstream> Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: yuri@freebsd.org This code: > #define _POSIX_C_SOURCE 200809L > #include <sstream> fails: $ c++ x.cpp In file included from x.cpp:3: In file included from /usr/include/c++/v1/sstream:184: In file included from /usr/include/c++/v1/istream:163: In file included from /usr/include/c++/v1/ostream:138: In file included from /usr/include/c++/v1/ios:214: /usr/include/c++/v1/__locale:637:16: error: use of undeclared identifier 'isascii' return isascii(__c) ? (__tab_[static_cast<int>(__c)] & __m) !=0 : false; ^ /usr/include/c++/v1/__locale:644:22: error: use of undeclared identifier 'isascii' *__vec = isascii(*__low) ? __tab_[static_cast<int>(*__low)] : 0; ^ /usr/include/c++/v1/__locale:652:17: error: use of undeclared identifier 'isascii' if (isascii(*__low) && (__tab_[static_cast<int>(*__low)] & __m)) ^ /usr/include/c++/v1/__locale:661:19: error: use of undeclared identifier 'isascii' if (!(isascii(*__low) && (__tab_[static_cast<int>(*__low)] & __m))) ^ 4 errors generated. -- You are receiving this mail because: You are the assignee for the bug.