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++/59281] attribute((constructor)) accepts enum class as integer constant


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.

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