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++/15399] New: Incorrect "cannot resolve function" error: gdb no longer promoting ints to pointers


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

             Bug #: 15399
           Summary: Incorrect "cannot resolve function" error: gdb no
                    longer promoting ints to pointers
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: saurabh@hotmail.com
    Classification: Unclassified


Created attachment 7000
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7000
C++ program to reproduce, see bug description

See steps below to reproduce. Promoting ints to arbitrary pointers was allowed
by gdb 7.2.

> g++ -g int_ptr.cc 
> gdb a.out
GNU gdb (GDB) 7.5
[... snip ...]
(gdb) b 13
Breakpoint 1 at 0x4005bc: file int_ptr.cc, line 13.
(gdb) run
[... snip ...]
Breakpoint 1, main () at int_ptr.cc:13
13        return 0;
(gdb) print k
$1 = (int *) 0x7fffffffbf24
(gdb) call fn(0x7fffffffbf24)
Cannot resolve function fn to any overloaded instance
(gdb) quit

-- 
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.


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