This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81513] __has_cpp_attribute returns non-zero in C++03 mode, but attributes don't work


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The C++11 attribute syntax isn't supported in C++03 mode, but the noreturn
attribute is supported using the GNU attribute syntax (and has been for years)
so it's right for that to be non-zero. I'm not sure why maybe_unused is
non-zero but doesn't work. __attribute__((unused)) works, but
__attribute__((maybe_unused)) doesn't.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]