https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:ed912b1ee5ad0f241f968d5fd1a54a7e9e0e20dd commit r16-2078-ged912b1ee5ad0f241f968d5fd1a54a7e9e0e20dd Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Jul 4 21:19:52 2025 +0100 libstdc++: Fix attribute order on __normal_iterator friends [PR120949] In r16-1911-g6596f5ab746533 I claimed to have reordered some attributes for compatibility with Clang, but it looks like I got the Clang restriction backwards and put them all in the wrong order. Clang trunk accepts either order (probably since the llvm/llvm-project#133107 fix) but released versions still require a particular order. There were also some cases where the attributes were after the friend keyword, which Clang trunk still rejects. libstdc++-v3/ChangeLog: PR libstdc++/120949 * include/bits/stl_iterator.h (__normal_iterator): Fix order of always_inline and nodiscard attributes for Clang compatibility.