This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [D] Allow enum scopes to be looked up.
- From: Pedro Alves <palves at redhat dot com>
- To: Iain Buclaw <ibuclaw at gdcproject dot org>, GDB Patches <gdb-patches at sourceware dot org>
- Date: Mon, 17 Aug 2015 17:41:16 +0100
- Subject: Re: [PATCH] [D] Allow enum scopes to be looked up.
- Authentication-results: sourceware.org; auth=none
- References: <CABOHX+c7k13v7Lqw+3LcnRo6DTz+yoSkoS+fzaBwpYiHn7GukA at mail dot gmail dot com>
On 08/15/2015 07:57 AM, Iain Buclaw wrote:
> Hi,
>
> In D, all named enums are scoped (the C++ equivalent of enum class) so
> they should be handled in the language-specific symbol lookup.
> However so as to support D compilers that don't emit enums as
> DW_AT_enum_class (currently none, but I'm will shortly be adding it to
> gdc), need to make sure that proper a safeguard is in place.
Looks fine to me.
Thanks,
Pedro Alves