This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR c++/30195
Fabien ChÃne <fabien.chene@gmail.com> a Ãcrit:
> Index: gcc/dbxout.c
> ===================================================================
> --- gcc/dbxout.c (revision 178088)
> +++ gcc/dbxout.c (working copy)
> @@ -1518,6 +1518,8 @@ dbxout_type_fields (tree type)
> if (TREE_CODE (tem) == TYPE_DECL
> /* Omit here the nameless fields that are used to skip bits. */
> || DECL_IGNORED_P (tem)
> + /* Omit USING_DECL */
> + || TREE_CODE (tem) >= LAST_AND_UNUSED_TREE_CODE
> /* Omit fields whose position or size are variable or too large to
> represent. */
> || (TREE_CODE (tem) == FIELD_DECL
As this dbxout backend code already ignores DECLs marked DECL_IGNORED_P,
maybe it would be best to have the front-end mark the USING_DECL as
DECL_IGNORED_P; possibly in finish_member_declaration?
You'd then avoid the above change.
--
Dodji