From: "mame (Yusuke Endoh)" Date: 2022-06-13T13:39:28+00:00 Subject: [ruby-core:108871] [Ruby master Bug#18823] _Bool not defined for C++ Issue #18823 has been updated by mame (Yusuke Endoh). Status changed from Feedback to Rejected michals (Michal Such��nek) wrote in #note-3: > I added a _Bool argument as part of other development which prevents ruby from building on older compiler versions and VS - eg. https://github.com/ruby/ruby/commit/6c72653d98c36c2a816bfff4e4e9b1c451154a9e I think include/ruby/internal/stdbool.h defines "bool", not "_Bool". BTW, I don't know of any actual examples that uses "bool" in the public API signature. I guess it is defined just for internal. ---------------------------------------- Bug #18823: _Bool not defined for C++ https://bugs.ruby-lang.org/issues/18823#change-97952 * Author: michals (Michal Such��nek) * Status: Rejected * Priority: Normal * ruby -v: ruby 3.2.0dev (2022-06-12T17:35:26Z master 8158f05e72) * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- When a _Bool argument is added to rb_fd_select ruby cannot be compiled on VisualStudio 2022 VisualStudio 2019 gcc-5 gcc-4.8 clang-5 clang-4 clang-3.9 c++98 (llvm 14) c++2a (llvm 14) which suggests that `if defined(HAVE_STDBOOL_H) && (__cplusplus >= 201103L)` in `include/ruby/internal/stdbool.h` may not be a great way to detect that C++ has bool, especially on Visual Studio. -- https://bugs.ruby-lang.org/ Unsubscribe: