Description of problem: Koschei detected a build failure of clang with the latest version of gcc: https://koschei.fedoraproject.org/build/9617244 Version-Release number of selected component (if applicable): https://koschei.fedoraproject.org/build/9617244 How reproducible: Always Steps to Reproduce: 1. Do a mock build or scratch build of clang with gcc-11.0.0-0.12.fc34. Actual results: Build failures with the error: *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_FINISH_UNIT | annobin: Generate final annotations PLUGIN_START_UNIT | annobin: Generate global annotations PLUGIN_ALL_PASSES_START | annobin: Generate per-function annotations PLUGIN_ALL_PASSES_END | annobin: Register per-function end symbols during GIMPLE pass: uninit In function 'void EvaluateFeatureLikeBuiltinMacro.constprop(llvm::raw_svector_ostream&, clang::Token&, clang::IdentifierInfo*, clang::Preprocessor&, llvm::function_ref<int(clang::Token&, bool&)>)': Segmentation fault 1286 | static void EvaluateFeatureLikeBuiltinMacro(llvm::raw_svector_ostream& OS, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x1147242f diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, char**, diagnostic_t) ???:0 0x1084fee3 internal_error(char const*, ...) ???:0 0x10444f9b crash_signal(int) ???:0 0x1027fc00 print_mem_ref(c_pretty_printer*, tree_node*) ???:0 0x1091af27 dump_expr(cxx_pretty_printer*, tree_node*, int) [clone .constprop.0] ???:0 0x101f4a17 expr_to_string(tree_node*) ???:0 0x1103941f cp_printer(pretty_printer*, text_info*, char const*, int, bool, bool, bool, bool*, char const**) ???:0 0x11477b4b pp_format(pretty_printer*, text_info*) ???:0 0x10ff8793 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) ???:0 0x10ff91e7 warning_at(unsigned int, int, char const*, ...) ???:0 0x10d4ab9b warn_uninit(opt_code, tree_node*, tree_node*, tree_node*, char const*, void*, unsigned int) ???:0 0x10d4bedf (anonymous namespace)::pass_late_warn_uninitialized::execute(function*) ???:0 Expected results: Build succeeds.
Martin Sebor, again your change.
This is a duplicate of bug 1915400, tracked upstream in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98597.
*** Bug 1915792 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 1915400 ***