Bug 9513 - (void(**)())
Summary: (void(**)())
Status: RESOLVED DUPLICATE of bug 9514
Alias: None
Product: gdb
Classification: Unclassified
Component: exp (show other bugs)
Version: 6.7
: P3 normal
Target Milestone: ---
Assignee: Tom Tromey
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 19:08 UTC by gin
Modified: 2008-12-19 19:12 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gin 2008-01-17 19:08:01 UTC
[Converted from Gnats 2408]

Posted to <bug-gdb@gnu.org> since Fri, 31 Mar 2006 22:12:41 +0400
(<66bqvm8ova.fsf@mo.msk.ru>).

In C `(void(**)())EXPR' type cast expression means the same as
`(void(*(*))())EXPR'.

(gdb) sho lang
The current source language is "auto; currently c".

With this setting, expecting that `gdb' also processes both of these
expressions the same way.  Instead:

(gdb) p*(void(**)())$addr
A syntax error in expression, near `*)())$addr'.

Release:
6.3, 6.4, 6.6, 6.7.1

Environment:
Hardly relevant.  Observed in x86_64-unknown-linux-gnu, i686-pc-linux-gnu.

How-To-Repeat:
p*(void(**)())$addr
Comment 1 Tom Tromey 2008-03-11 01:42:53 UTC
*** This bug has been marked as a duplicate of 9514 ***