This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [1/4] RFC: skip DIEs which only declare an enum
>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
Daniel> Generally speaking, I agree with your sentiment. Can't you
Daniel> forward-declare enums in the latest C++ draft, though?
Yes, thanks for pointing that out. The F15 g++ accepts this translation
unit with -std=c++0x:
enum x : int;
enum x a;
This generates:
<1><1d>: Abbrev Number: 2 (DW_TAG_enumeration_type)
<1e> DW_AT_name : x
<20> DW_AT_declaration : 1
<21> DW_AT_byte_size : 4
<22> DW_AT_decl_file : 1
<23> DW_AT_decl_line : 1
I am going withdraw this patch and look at other ways to fix this
problem.
Tom