[Bug gdb/9837] sizeof( int(*)(int *) ) == 1?

drow at false dot org sourceware-bugzilla@sourceware.org
Wed Feb 11 20:37:00 GMT 2009


------- Additional Comments From drow at false dot org  2009-02-11 20:37 -------
Subject: Re:  New: sizeof( int(*)(int *) ) == 1?

On Wed, Feb 11, 2009 at 08:18:35PM -0000, chris dot interim at gmail dot com wrote:
> Walk up to a machine with gdb.
> Run gdb.
> Type "print sizeof( int(*)(int *) )"
> 
> The result comes back as "1".

Try this to see the underlying problem:

(gdb) ptype int(*)(int *)
type = int ()

I can't find it now, but there should be another bug open about the
problems with function pointer types.



-- 


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.



More information about the Gdb-prs mailing list