https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123935
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <[email protected]>: https://gcc.gnu.org/g:e38ac19123b35c6240629266c2c2dbc3bdbeba7b commit r17-47-ge38ac19123b35c6240629266c2c2dbc3bdbeba7b Author: Marek Polacek <[email protected]> Date: Mon Feb 2 22:07:47 2026 -0500 c++: CWG 2229, cv-qualified unnamed bit-fields [PR123935] This implements [class.bit]/2: An unnamed bit-field shall not be declared with a cv-qualified type. This was clarified in DR 2229. DR 2229 PR c++/123935 gcc/cp/ChangeLog: * decl2.cc (grokbitfield): Add pedwarn for cv-qualified unnamed bit-fields. gcc/testsuite/ChangeLog: * g++.dg/DRs/dr2229.C: New test. Reviewed-by: Jason Merrill <[email protected]>
