https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104433
--- Comment #3 from Luiz Henrique Laurini <lhlaurini at hotmail dot com> --- Thank you for the fix. The test case seems to be working as expected now. However, the original code import <memory>; int main() { std::make_shared<int>(); } now causes an internal compiler error: during IPA pass: visibility main.cpp:6:1: internal compiler error: in function_and_variable_visibility, at ipa-visibility.cc:712 6 | } | ^ 0x236019e internal_error(char const*, ...) ???:0 0xaa1f68 fancy_abort(char const*, int, char const*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Godbolt link (using gcc trunk): https://godbolt.org/z/bMYYvWd8e Should I report a new bug?