This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[0/5] FYI: fix typename parsing bugs
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 06 Jul 2012 08:36:07 -0600
- Subject: [0/5] FYI: fix typename parsing bugs
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