[Bug c++/43407] Specifying visibility attribute of C++0x enum class emits warning

2016-01-21 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407

--- Comment #5 from Jason Merrill  ---
Author: jason
Date: Thu Jan 21 20:26:02 2016
New Revision: 232701

URL: https://gcc.gnu.org/viewcvs?rev=232701=gcc=rev
Log:
PR c++/43407
* decl.c (start_enum): Add attributes parameter.
* parser.c (cp_parser_enum_specifier): Pass it.
* pt.c (lookup_template_class_1): Pass it.
* cp-tree.h: Adjust.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/enum31.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.dg/abi/abi-tag15.C

[Bug c++/43407] Specifying visibility attribute of C++0x enum class emits warning

2016-01-21 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |6.0

--- Comment #6 from Jason Merrill  ---
Fixed for GCC 6.

[Bug c++/43407] Specifying visibility attribute of C++0x enum class emits warning

2016-01-19 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407

Jason Merrill  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2016-01-19
 CC||jason at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org
 Ever confirmed|0   |1

[Bug c++/43407] Specifying visibility attribute of C++0x enum class emits warning

2015-08-31 Thread dank at kegel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407

dank at kegel dot com changed:

   What|Removed |Added

 CC||dank at kegel dot com

--- Comment #4 from dank at kegel dot com ---
Just ran into this in the stock ubuntu 14.04 compiler, gcc-4.8.4.
Inserting : int before the attribute works around the problem.

Can someone confirm the bug?


[Bug c++/43407] Specifying visibility attribute of C++0x enum class emits warning

2015-03-07 Thread badams at gnarlie dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407

--- Comment #3 from Brian Adams badams at gnarlie dot com ---
This bug is also in 4.9.0, and applies to /any/ attribute. Assuming a GCC
plugin that defines 'my_attr': 

   enum class __attribute__((my_attr)) MessageType : uint8_t  {}

will generate the warning

   Messages.h:37:1: warning: type attributes ignored after type is already
defined [-Wattributes]

As a work around, this code functions as desired:

   enum class MessageType : uint8_t  __attribute__((my_attr)) {}

Interestingly, putting the attribute *before* the enum keyword generates a
warning and note that are (currently) incorrect, given this bug:

   warning: attribute ignored in declaration of ‘enum class MessageType’
[-Wattributes]
__attribute__((my_attr)) enum class MessageType : uint8_t  {
 ^
   note: attribute for ‘enum class batsoe::MessageType’ must follow the ‘enum
class’ keyword

[Bug c++/43407] Specifying visibility attribute of C++0x enum class emits warning

2014-02-02 Thread Jobst.Ziebell at mailbox dot tu-dresden.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407

Jobst.Ziebell at mailbox dot tu-dresden.de changed:

   What|Removed |Added

 CC||Jobst.Ziebell at mailbox dot 
tu-dr
   ||esden.de

--- Comment #2 from Jobst.Ziebell at mailbox dot tu-dresden.de ---
This bug is still present as of 4.8.2... (on x86_64-apple-darwin13.0.0)


[Bug c++/43407] Specifying visibility attribute of C++0x enum class emits warning

2010-03-17 Thread paolo dot carlini at oracle dot com


--- Comment #1 from paolo dot carlini at oracle dot com  2010-03-17 17:21 
---
*** Bug 43408 has been marked as a duplicate of this bug. ***


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407