From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47BE23858402; Fri, 18 Feb 2022 22:07:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47BE23858402 From: "msebor at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/28901] unable to resolve function overloads involving inheritance Date: Fri, 18 Feb 2022 22:07:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2022 22:07:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28901 --- Comment #3 from Martin Sebor --- Thanks for the quick patch! I can confirm it fixes the test case I submitt= ed but it doesn't seem to help with the LLVM use case. I still get the same e= rror -- see below. Let me see if I can reduce it to a test case. Breakpoint 1, llvm::LibCallSimplifier::optimizeStrLen (this=3D0x7fffffff689= 8, CI=3D0x986a2a0, B=3D...) at /src/llvm/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:726 726 if (Value *V =3D optimizeStringLength(CI, B, 8)) (gdb) p CI $1 =3D (llvm::CallInst *) 0x986a2a0 (gdb) p errs() $2 =3D (llvm::raw_fd_ostream &) @0x979fe40: { =3D { =3D { ... (gdb) p (llvm::Value*)CI $3 =3D (llvm::Value *) 0x986a2a0 (gdb) p *$3 $4 =3D {VTy =3D 0x9862c00, UseList =3D 0x986a350, SubclassID =3D 83 'S',=20 ... (gdb) p $3->print($2, false)=20 Cannot resolve method llvm::Value::print to any overloaded instance (gdb) ptype $3 type =3D class llvm::Value { ... public: llvm::Value & operator=3D(const llvm::Value &); void deleteValue(void); void dump(void) const; void print(llvm::raw_ostream &, bool) const; void print(llvm::raw_ostream &, llvm::ModuleSlotTracker &, bool) const; void printAsOperand(llvm::raw_ostream &, bool,=20 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=