https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115098

            Bug ID: 115098
           Summary: std::vector<bool>::iterator::reference is
                    default-constructible
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

..which shouldn't because [vector.bool.pspc] specifies that its default
constructor is private.

#include <vector>

typename std::vector<bool>::iterator::reference bit_ref;

https://godbolt.org/z/WPxqWTjMY

Reply via email to