[Bug c++/61414] enum class bitfield size-checking needs a separate warning flag controlling it
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 14 16:43:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414
--- Comment #27 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:f0a72494ea3747d1f66a0cda3e67a7611779030d
commit r9-8238-gf0a72494ea3747d1f66a0cda3e67a7611779030d
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Feb 14 17:36:00 2020 +0100
c++: Fix thinko in enum_min_precision [PR61414]
When backporting the PR61414 fix to 8.4, I've noticed that the caching
of prec is actually broken, as it would fail to actually store the computed
precision into the hash_map's value and so next time we'd think the enum
needs
0 bits.
2020-02-14 Jakub Jelinek <jakub@redhat.com>
PR c++/61414
* class.c (enum_min_precision): Change prec type from int to int &.
* g++.dg/cpp0x/enum39.C: New test.
More information about the Gcc-bugs
mailing list