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 gdb/9837] sizeof( int(*)(int *) ) == 1?


------- Additional Comments From chris dot interim at gmail dot com  2009-02-11 22:17 -------
For completeness:

gdb
GNU gdb Fedora (6.8-23.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
(gdb) print sizeof( int(*)(int *) )
$1 = 1
(gdb) ptype int(*)(int *)
type = int ()
(gdb) print sizeof( int () )
$2 = 1
(gdb) print sizeof( int )
$3 = 4
(gdb) print sizeof( int * )
$4 = 4
(gdb) quit


-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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