This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/15399] New: Incorrect "cannot resolve function" error: gdb no longer promoting ints to pointers
- From: "saurabh at hotmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 25 Apr 2013 14:20:45 +0000
- Subject: [Bug c++/15399] New: Incorrect "cannot resolve function" error: gdb no longer promoting ints to pointers
- Auto-submitted: auto-generated
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.