Explain why TYPE_DECLs in TYPE_FIELDS go at the end.
gcc/cp/ChangeLog:
* reflect.cc (class_members_of): Update a comment to mention
finish_member_declaration.
get_reflection_raw (loc, m));
}
}
- /* TYPE_DECLs in TYPE_FIELDS come after other decls, so for members_of
- the declaration order is not preserved. */
+ /* TYPE_DECLs in TYPE_FIELDS come after other decls due to the "struct
+ stat hack" (see finish_member_declaration), so for members_of the
+ declaration order is not preserved. */
if (kind == METAFN_MEMBERS_OF && elts)
elts->qsort (members_cmp);
if (kind == METAFN_MEMBERS_OF && !implicitly_declared.is_empty ())