public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "msebor at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/28901] unable to resolve function overloads involving inheritance
Date: Fri, 18 Feb 2022 22:19:37 +0000	[thread overview]
Message-ID: <bug-28901-4717-IfADWKpCGz@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28901-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28901

--- Comment #5 from Martin Sebor <msebor at gmail dot com> ---
Here you go:

(gdb) p (llvm::Value*)CI
$1 = (llvm::Value *) 0x986a2a0
(gdb) p errs()                  
Overloaded function instance llvm::errs() # of parms 0
...Badness of length : {0, 0}
Overload resolution champion is 0, ambiguous? 0
$2 = (llvm::raw_fd_ostream &) @0x979fbc0: {<llvm::raw_pwrite_stream> =
{<llvm::raw_ostream> = {
      _vptr$raw_ostream = 0x96d2698 <vtable for llvm::raw_fd_ostream+16>, 
      Kind = llvm::raw_ostream::OStreamKind::OK_OStream, OutBufStart = 0x0, 
      OutBufEnd = 0x0, OutBufCur = 0x0, ColorEnabled = true, 
      TiedStream = 0x0, 
      BufferMode = llvm::raw_ostream::BufferKind::Unbuffered, 
      static BLACK = llvm::raw_ostream::Colors::BLACK, 
      static RED = llvm::raw_ostream::Colors::RED, 
      static GREEN = llvm::raw_ostream::Colors::GREEN, 
      static YELLOW = llvm::raw_ostream::Colors::YELLOW, 
      static BLUE = llvm::raw_ostream::Colors::BLUE, 
      static MAGENTA = llvm::raw_ostream::Colors::MAGENTA, 
      static CYAN = llvm::raw_ostream::Colors::CYAN, 
      static WHITE = llvm::raw_ostream::Colors::WHITE, 
      static SAVEDCOLOR = llvm::raw_ostream::Colors::SAVEDCOLOR, 
      static RESET = llvm::raw_ostream::Colors::RESET}, <No data fields>}, 
  FD = 2, ShouldClose = false, SupportsSeeking = false, 
  IsRegularFile = false, HasColors = {Storage = {{empty = 0 '\000', 
        value = false}, hasVal = false}}, EC = {_M_value = 0, 
    _M_cat = 0x7ffff7eb3160 <(anonymous namespace)::system_category_instance>}, 
  pos = 207}
(gdb) p $1->print($2, false)
Overloaded method instance llvm::Value::print(llvm::raw_ostream&, bool) const,
# of parms 3
...Badness of length : {0, 0}
...Badness of arg 1 : {1, 1}
...Badness of arg 2 : {100, 0}
...Badness of arg 3 : {0, 0}
Overload resolution champion is 0, ambiguous? 0
Overloaded method instance llvm::Value::print(llvm::raw_ostream&,
llvm::ModuleSlotTracker&, bool) const, # of parms 4
...Badness of length : {100, 0}
...Badness of arg 1 : {1, 1}
...Badness of arg 2 : {100, 0}
...Badness of arg 3 : {100, 0}
Overload resolution champion is 0, ambiguous? 0
Cannot resolve method llvm::Value::print to any overloaded instance

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-02-18 22:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16 23:56 [Bug c++/28901] New: " msebor at gmail dot com
2022-02-18 17:14 ` [Bug c++/28901] " tromey at sourceware dot org
2022-02-18 21:07 ` tromey at sourceware dot org
2022-02-18 22:07 ` msebor at gmail dot com
2022-02-18 22:11 ` tromey at sourceware dot org
2022-02-18 22:19 ` msebor at gmail dot com [this message]
2022-02-19  2:24 ` tromey at sourceware dot org
2022-02-19 16:29 ` tromey at sourceware dot org
2022-02-23 20:17 ` tromey at sourceware dot org
2022-02-23 20:23 ` msebor at gmail dot com
2022-02-23 20:23 ` cvs-commit at gcc dot gnu.org
2022-02-24 21:26 ` msebor at gmail dot com
2022-03-12 22:12 ` tromey at sourceware dot org
2022-11-09 15:36 ` tromey at sourceware dot org
2022-11-10 12:19 ` blarsen at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28901-4717-IfADWKpCGz@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).