From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD218385803A; Thu, 24 Feb 2022 21:26:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD218385803A From: "msebor at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/28901] unable to resolve function overloads involving inheritance Date: Thu, 24 Feb 2022 21:26:32 +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: Thu, 24 Feb 2022 21:26:32 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28901 --- Comment #11 from Martin Sebor --- I'm not having any luck isolating the problem from LLVM to a standalone test case. I can't even recreate it within LLVM if I replace llvm::raw_ostream = with an exact copy of it (llvm::xxx_raw_ostream). There's something about llvm::raw_ostream that GDB doesn't like. With a copy of raw_ostream called xraw_ostream and the code below in SimplifyLibCalls.cpp: struct Foo { void foo(xxx_raw_ostream &); void foo(xxx_raw_ostream &, int); void bar(raw_ostream &); void bar(raw_ostream &, int); }; void Foo::foo(xxx_raw_ostream &) { } void Foo::foo(xxx_raw_ostream &, int) { } void Foo::bar(raw_ostream &) { } void Foo::bar(raw_ostream &, int) { } GDB can resolve the call pfoo->foo (xr) but not pfoo->bar (r) (with pfoo be= ing a pointer to Foo, xr a reference to xxx_raw_ostream, and r a reference to raw_ostream). --=20 You are receiving this mail because: You are on the CC list for the bug.=