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

--- 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:cba80691251efccf44ab9aecb26558319605c9ea

commit r15-4515-gcba80691251efccf44ab9aecb26558319605c9ea
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Oct 21 12:09:36 2024 +0100

    libstdc++: Fix order of [[...]] and __attribute__((...)) attrs [PR117220]

    GCC allows these in either order, but Clang doesn't like the C++11-style
    [[__nodiscard__]] coming after __attribute__((__always_inline__)).

    libstdc++-v3/ChangeLog:

            PR libstdc++/117220
            * include/bits/stl_iterator.h: Move _GLIBCXX_NODISCARD
            annotations after __attribute__((__always_inline__)).

Reply via email to