[Bug c++/12328] New: Ignore "const" for non-reference/pointer scalar

keiths at redhat dot com sourceware-bugzilla@sourceware.org
Thu Dec 16 17:34:00 GMT 2010


http://sourceware.org/bugzilla/show_bug.cgi?id=12328

           Summary: Ignore "const" for non-reference/pointer scalar
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: keiths@redhat.com


Source:

class myclass
{
 public:
  static void func(const int aa) {};
};

int
main (int argc, char *argv[])
{
  myclass::func (42);
}

Example:
(gdb) break myclass::func
the class myclass does not have any method named func
Hint: try 'myclass::func<TAB> or 'myclass::func<ESC-?>
(Note leading single quote.)
Make breakpoint pending on future shared library load? (y or [n]) n

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Gdb-prs mailing list