This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [C++0x] implementing forward declarations for enums


On Wed, Oct 13, 2010 at 12:08 AM, Tom Tromey <tromey@redhat.com> wrote:
>
> Rodrigo> (With STABS)
> Rodrigo> (gdb) p z
> Rodrigo> $1 = <incomplete type>
> Rodrigo> (gdb) p (int)z
> Rodrigo> $2 = 0
>
> If you can reproduce this with DWARF, please file a gdb bug report and
> update it when the compiler patch is in (so we can know when it is easy
> to try it out).
Actually with DWARF it prints the numeric value without the need of
the cast which is what I would expect:
(gdb) p z
$1 = 0
(gdb) ptype z
type = enum V {}

The opaque enum is simply shown empty.

Regards.
Rodrigo


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