On Tue, Oct 9, 2018 at 1:19 PM David Malcolm wrote:
> + if (!DECL_P (decl)
> + && decl == error_mark_node)
You don't need to check DECL_P here.
Jason
On Tue, Oct 9, 2018 at 1:19 PM David Malcolm wrote:
> + /* Emulation of a "move" constructor, but really a copy
> + constructor. */
> +
> + name_hint (const name_hint &other)
> + : m_suggestion (other.m_suggestion),
> +m_deferred (const_cast (other).take_deferred ())
> + {
> + }
> +
In the C++ FE, after emitting various errors about unrecognized names,
the parser can call
suggest_alternatives_for
and/or
suggest_alternative_in_explicit_scope.
These can issue zero or more suggestions for the unrecognized name,
or various other "note" diagnostics suggesting how to fix the pro