]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix order of [[...]] and __attribute__((...)) attrs [PR117220]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 21 Oct 2024 11:09:36 +0000 (12:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 21 Oct 2024 11:12:15 +0000 (12:12 +0100)
commitcba80691251efccf44ab9aecb26558319605c9ea
treeedb63a9470b3e3ac81710780742f0bbefac86d83
parent1a4c5643a5911d130dfab9a064222baeeb7f9be7
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__)).
libstdc++-v3/include/bits/stl_iterator.h