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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 54201
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54201&action=edit
gcc13-pr108047.patch

My current understanding is that even if nothing in the initializer is
dependent maybe_init_list_as_range will be called again during instantiation
with
!processing_template_decl and because this is just an optimization, I think
it should be fine to do the optimization only if !processing_template_decl.

Reply via email to