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

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).