https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120147
Bug ID: 120147 Summary: [16 Regression] libstdc++-v3 build failure for mingw32 target: src/c++23/print.cc:102:49: error: invalid conversion from 'std::basic_filebuf<char>::native_handle_type' {aka 'int'} to 'void*' [-fpermissive] since r16-427-g86627faec10da5 Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- A recent regression of gcc-master fails to build libstdc++ for mingw targets as: ../../../../../source/libstdc++-v3/src/c++23/print.cc: In function 'void* std::__open_terminal(streambuf*)': ../../../../../source/libstdc++-v3/src/c++23/print.cc:102:49: error: invalid conversion from 'std::basic_filebuf<char>::native_handle_type' {aka 'int'} to 'void*' [-fpermissive] 102 | return check_for_console(fb->native_handle()); | ~~~~~~~~~~~~~~~~~^~ | | | std::basic_filebuf<char>::native_handle_type {aka int} ../../../../../source/libstdc++-v3/src/c++23/print.cc:54:27: note: initializing argument 1 of 'void* std::{anonymous}::check_for_console(void*)' 54 | check_for_console(void* handle) | ~~~~~~^~~~~~ Bisected down to r16-427-g86627faec10da5 : commit 86627faec10da53d7532805019e5296fcf15ac09 (HEAD) Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Apr 25 21:09:18 2025 +0100 libstdc++: Rewrite atomic builtin checks [PR70560]