This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59281] attribute((constructor)) accepts enum class as integer constant
- From: "nyh at math dot technion.ac.il" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Jul 2016 11:51:10 +0000
- Subject: [Bug c++/59281] attribute((constructor)) accepts enum class as integer constant
- Auto-submitted: auto-generated
- References: <bug-59281-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59281
Nadav Har'El <nyh at math dot technion.ac.il> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nyh at math dot technion.ac.il
--- Comment #3 from Nadav Har'El <nyh at math dot technion.ac.il> ---
Sad, this "fix" removed a useful feature... For example, the OSv project has:
enum class init_prio : int {
dtb = 101,
console,
sort,
cpus,
fpranges,
...
}
To automatically create numbers for these priorities. This trick no longer
works.