https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85070

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Nathan, I stumbled into this minor regression and noticed that the ICE happens
exactly at the gcc_assert in lazily_declare_fn that you added as part of
r248285:

  /* Add it to the class  */
  bool added = add_method (type, fn, false);
  gcc_assert (added);

but, for the testcase, during error-recovery added is false because add_method
issued a correct - I believe - error_at + inform. Thus, is it only matter of
loosening a bit the gcc_assert, eg added || errorcount, or something deeper is
going on?

Reply via email to