https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112296
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- For the C++ frontend I wonder why the span.size () call is marked as TREE_SIDE_EFFECTS for a inline constexpr auto size() const noexcept function. Possibly those declaration specifiers are not enough to guarantee the lack of side-effects?