public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/96117] New: Cannot mix c++11-style and GCC-style attributes @ 2020-07-08 14:32 steveire at gmail dot com 2020-07-08 15:43 ` [Bug c++/96117] " redi at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: steveire at gmail dot com @ 2020-07-08 14:32 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117 Bug ID: 96117 Summary: Cannot mix c++11-style and GCC-style attributes Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: steveire at gmail dot com Target Milestone: --- ``` struct __attribute__((visibility("default"))) [[deprecated("a message")]] A1 { }; struct __attribute__((__deprecated__("a message"))) __attribute__((visibility("default"))) A2 { }; ``` A EXPORT macro containing a GCC-style visibility attribute (generated by CMake) and another macro containing a c++11-style macro can not be used to decorate a class. https://godbolt.org/z/qHxr6s ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/96117] Cannot mix c++11-style and GCC-style attributes 2020-07-08 14:32 [Bug c++/96117] New: Cannot mix c++11-style and GCC-style attributes steveire at gmail dot com @ 2020-07-08 15:43 ` redi at gcc dot gnu.org 2021-12-20 11:58 ` pinskia at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: redi at gcc dot gnu.org @ 2020-07-08 15:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-07-08 Status|UNCONFIRMED |NEW Keywords| |rejects-valid Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This one works too of course, but isn't helpful if you don't control the macros: struct [[gnu::visibility("default")]] [[deprecated("a message")]] A3 { }; ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/96117] Cannot mix c++11-style and GCC-style attributes 2020-07-08 14:32 [Bug c++/96117] New: Cannot mix c++11-style and GCC-style attributes steveire at gmail dot com 2020-07-08 15:43 ` [Bug c++/96117] " redi at gcc dot gnu.org @ 2021-12-20 11:58 ` pinskia at gcc dot gnu.org 2023-06-23 9:59 ` [Bug c++/96117] Cannot mix c++11-style and GCC-style attributes on struct in one specific location steveire at gmail dot com 2023-06-23 20:33 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-20 11:58 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Here is one where GCC works but clang does not: __attribute__((visibility("default"))) [[deprecated("a message")]] __attribute__((visibility("default"))) int A(void); If you remove the first __attribute__, clang will work. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/96117] Cannot mix c++11-style and GCC-style attributes on struct in one specific location 2020-07-08 14:32 [Bug c++/96117] New: Cannot mix c++11-style and GCC-style attributes steveire at gmail dot com 2020-07-08 15:43 ` [Bug c++/96117] " redi at gcc dot gnu.org 2021-12-20 11:58 ` pinskia at gcc dot gnu.org @ 2023-06-23 9:59 ` steveire at gmail dot com 2023-06-23 20:33 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: steveire at gmail dot com @ 2023-06-23 9:59 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117 Stephen <steveire at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Stephen <steveire at gmail dot com> --- This seems to be fixed in the latest release https://godbolt.org/z/Kdsrs76PT https://developers.redhat.com/articles/2023/06/21/new-c-features-gcc-13#additional_updates ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/96117] Cannot mix c++11-style and GCC-style attributes on struct in one specific location 2020-07-08 14:32 [Bug c++/96117] New: Cannot mix c++11-style and GCC-style attributes steveire at gmail dot com ` (2 preceding siblings ...) 2023-06-23 9:59 ` [Bug c++/96117] Cannot mix c++11-style and GCC-style attributes on struct in one specific location steveire at gmail dot com @ 2023-06-23 20:33 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-06-23 20:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |DUPLICATE --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Dup of bug 69585. *** This bug has been marked as a duplicate of bug 69585 *** ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-23 20:33 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-07-08 14:32 [Bug c++/96117] New: Cannot mix c++11-style and GCC-style attributes steveire at gmail dot com 2020-07-08 15:43 ` [Bug c++/96117] " redi at gcc dot gnu.org 2021-12-20 11:58 ` pinskia at gcc dot gnu.org 2023-06-23 9:59 ` [Bug c++/96117] Cannot mix c++11-style and GCC-style attributes on struct in one specific location steveire at gmail dot com 2023-06-23 20:33 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).