From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D30B385B191; Mon, 12 Dec 2022 13:53:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D30B385B191 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670853222; bh=fbVOV4twBA11kFdryMqVdQ02WTDaQlFskCFbKNcyOmE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=L775f2JMBDJKJMH3ePWMRx+c3hlDVEfOoOt/o/6ArhS+mMhFS7HmRzzDom+zO8Fsh u+izK9LW2DK/Q9qAKSLllZ1Gp4A2emuxB9GD8Yczl6ojlbjZkftNVkea7jVTLfPREC qm43nfgLdLEyzuLnL7I4FywZbHDKe5+O7u3fuBFk= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108071] [13 Regression] Build failure in Libreoffice since r13-4565 Date: Mon, 12 Dec 2022 13:53:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108071 --- Comment #7 from Sergei Trofimovich --- Got a build failure of clang-14 on this week's gcc. Minimal example: This week's gcc-13 fails: $ result-bad/bin/g++ -c bug.cc.cc bug.cc.cc: In member function 'void Linker::ConstructJob(const ArgList&) const': bug.cc.cc:19:18: error: call of overloaded 'OptSpecifier(const)' is ambiguous 19 | Args.AddAllArgs({OPT_u}); | ~~~~~~~~~~~~~~~^~~~~~~~~ bug.cc.cc:9:3: note: candidate: 'OptSpecifier::OptSpecifier(unsigned int)' 9 | OptSpecifier(unsigned); | ^~~~~~~~~~~~ bug.cc.cc:8:12: note: candidate: 'OptSpecifier::OptSpecifier(bool)' 8 | explicit OptSpecifier(bool); | ^~~~~~~~~~~~ bug.cc.cc:7:8: note: candidate: 'constexpr OptSpecifier::OptSpecifier(const OptSpecifier&)' 7 | struct OptSpecifier { | ^~~~~~~~~~~~ bug.cc.cc:7:8: note: candidate: 'constexpr OptSpecifier::OptSpecifier(OptSpecifier&&)' Lat week's gcc-13 is ok: $ result-good/bin/g++ -c bug.cc.cc Version: $ result-bad/bin/g++ -v Using built-in specs. COLLECT_GCC=3D/<>/gcc-13.0.0/bin/g++ COLLECT_LTO_WRAPPER=3D/<>/gcc-13.0.0/libexec/gcc/x86_64-unknown-linux-= gnu/13.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20221211 (experimental) (GCC) Original clang-14 build failure this example was extracted from: /build/clang-src-14.0.6/clang/lib/Driver/ToolChains/RISCVToolchain.cpp: In member function 'virtual void clang::driver::tools::RISCV::Linker::ConstructJob(clang::driver::Compilatio= n&, const clang::driver::JobAction&, const clang::driver::InputInfo&, const clang::driver::InputInfoList&, const llvm::opt::ArgList&, const char*) cons= t': /build/clang-src-14.0.6/clang/lib/Driver/ToolChains/RISCVToolchain.cpp:189:= 18: error: call of overloaded 'OptSpecifier(const clang::driver::options::ID)' = is ambiguous 189 | Args.AddAllArgs(CmdArgs, | ~~~~~~~~~~~~~~~^~~~~~~~~ 190 | {options::OPT_T_Group, options::OPT_e, options::OPT_s, |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 191 | options::OPT_t, options::OPT_Z_Flag, options::OPT_r}); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /nix/store/6fphk1hf305pdli056km8qxv66bavb5a-llvm-14.0.6-dev/include/llvm/Op= tion/Option.h:14, from /nix/store/6fphk1hf305pdli056km8qxv66bavb5a-llvm-14.0.6-dev/include/llvm/Op= tion/Arg.h:19, from /nix/store/6fphk1hf305pdli056km8qxv66bavb5a-llvm-14.0.6-dev/include/llvm/Op= tion/ArgList.h:19, from /build/clang-src-14.0.6/clang/include/clang/Driver/Types.h:14, from /build/clang-src-14.0.6/clang/include/clang/Driver/Action.h:13, from /build/clang-src-14.0.6/clang/lib/Driver/ToolChains/Cuda.h:13, from /build/clang-src-14.0.6/clang/lib/Driver/ToolChains/Gnu.h:12, from /build/clang-src-14.0.6/clang/lib/Driver/ToolChains/RISCVToolchain.h:12, from /build/clang-src-14.0.6/clang/lib/Driver/ToolChains/RISCVToolchain.cpp:9: /nix/store/6fphk1hf305pdli056km8qxv66bavb5a-llvm-14.0.6-dev/include/llvm/Op= tion/OptSpecifier.h:24:16: note: candidate: 'llvm::opt::OptSpecifier::OptSpecifier(unsigned int)' 24 | /*implicit*/ OptSpecifier(unsigned ID) : ID(ID) {} | ^~~~~~~~~~~~ /nix/store/6fphk1hf305pdli056km8qxv66bavb5a-llvm-14.0.6-dev/include/llvm/Op= tion/OptSpecifier.h:23:12: note: candidate: 'llvm::opt::OptSpecifier::OptSpecifier(bool)' (deleted) 23 | explicit OptSpecifier(bool) =3D delete; | ^~~~~~~~~~~~ /nix/store/6fphk1hf305pdli056km8qxv66bavb5a-llvm-14.0.6-dev/include/llvm/Op= tion/OptSpecifier.h:18:7: note: candidate: 'constexpr llvm::opt::OptSpecifier::OptSpecifier(const llvm::opt::OptSpecifier&)' 18 | class OptSpecifier { | ^~~~~~~~~~~~ /nix/store/6fphk1hf305pdli056km8qxv66bavb5a-llvm-14.0.6-dev/include/llvm/Op= tion/OptSpecifier.h:18:7: note: candidate: 'constexpr llvm::opt::OptSpecifier::OptSpecifier(llvm::opt::OptSpecifier&&)' make[2]: *** [lib/Driver/CMakeFiles/obj.clangDriver.dir/build.make:874: lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/RISCVToolchain.cpp.o] Error 1 shuffle=3D1857759387 make[1]: *** [CMakeFiles/Makefile2:7653: lib/Driver/CMakeFiles/obj.clangDriver.dir/all] Error 2 shuffle=3D1857759387 make[1]: *** Waiting for unfinished jobs....=