Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [0/5] FYI: fix typename parsing bugs
@ 2012-07-06 14:36 Tom Tromey
  2012-07-07 12:58 ` Still regressing, now: Too few arguments in function call [Re: [0/5] FYI: fix typename parsing bugs] Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2012-07-06 14:36 UTC (permalink / raw)
  To: gdb-patches

This series fixes the typename parsing regressions I introduced, and
also the other typename bugs I tripped across:

    (gdb) whatis int *(*)()
    type = int (**)()

... my regression

    (gdb) whatis int (*)(double)
    type = int (*)()

Argument types dropped.

    (gdb) whatis char (*(*)())[23]
    type = char (**)())[23]

Bad parse.

    (gdb) whatis int(*)(const int *, ...)
    A syntax error in expression, near `...)'.

Doesn't understand varargs.

    (gdb) whatis const int * (*)(const int *)
    type = const int ()

"*" mysteriously dropped.


There is still one more bug remaining that I know of, but I didn't think
it was important enough to bother with right now:

    (gdb) whatis int & &
    type = int &&

A reference to a reference doesn't make sense.
Maybe I'll fix this later; it wasn't immediately clear to me exactly
where this ought to error out.

Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-09 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-06 14:36 [0/5] FYI: fix typename parsing bugs Tom Tromey
2012-07-07 12:58 ` Still regressing, now: Too few arguments in function call [Re: [0/5] FYI: fix typename parsing bugs] Jan Kratochvil
2012-07-09 14:20   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox