[Bug c++/59281] attribute((constructor)) accepts enum class as integer constant
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 21 19:58:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59281
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution|--- |FIXED
Target Milestone|--- |6.0
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
The testcase gives an error with pre-6, probably because of delayed folding:
x.C:5:50: error: constructor priorities must be integers from 0 to 65535
inclusive
More information about the Gcc-bugs
mailing list