This changes cp_lookup_rtti_type to only search for types -- not
functions or variables. Due to the symbol-matching hack, this could
just use SEARCH_TYPE_DOMAIN, but I think it's better to be clear; also
I hold on to some hope that perhaps the hack can someday be removed.
struct symbol * rtti_sym;
struct type * rtti_type;
- /* Use VAR_DOMAIN here as NAME may be a typedef. PR 18141, 18417.
- Classes "live" in both STRUCT_DOMAIN and VAR_DOMAIN. */
- rtti_sym = lookup_symbol (name, block, SEARCH_VFT, NULL).symbol;
+ rtti_sym = lookup_symbol (name, block,
+ SEARCH_TYPE_DOMAIN | SEARCH_STRUCT_DOMAIN,
+ nullptr).symbol;
if (rtti_sym == NULL)
{