This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16217] New: print of SRAd object with "operator *"


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

            Bug ID: 16217
           Summary: print of SRAd object with "operator *"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at redhat dot com

It's possible to write a test case where a
class has an "operator*" and an instance of
the class is subject to SRA by GCC.
In this scenario, you can see a synthetic pointer
to the object, but "print *ptr" will fail
because gdb will attempt to call "operator*" --
but that isn't possible because the object
doesn't have an address.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]