This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12933] New: template parameter member function pointer notdisplayed
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 26 Jun 2011 13:32:04 +0000
- Subject: [Bug c++/12933] New: template parameter member function pointer notdisplayed
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12933
Summary: template parameter member function pointer not
displayed
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
struct S {
void m (int x) {}
};
template<int X,void (S::*F) (int)>
struct K {
void f () { S s; (s.*F) (5); }
};
int main () {
K<1,&S::m> k;
k.f ();
}
#1 0x000000000040051b in K<1, &(S::m)>::f (this=0x7fffffffdcaf) at
tmplmember.C:6
6 void f () { S s; (s.*F) (5); }
(gdb) p F
$1 = <optimized out>
(gdb) p &F
Can't take address of "F" which isn't an lvalue.
(gdb) ptype F
type = void (S::*)(S * const, int)
It displays the type but it could display something like:
(gdb) p F
$1 = {void (S * const, int)} 0x4004f0 <S::m(int)>
--
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.