https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119752
Bug ID: 119752 Summary: ranges::find does not handle volatile char ranges well Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- This is the sibling of PR119748: https://godbolt.org/z/Mv184YGo8 #include <algorithm> int main() { volatile char vc[4] = {'a', 'b', 'c', '\n'}; auto it = std::ranges::find(vc, 'c'); } Now I began to suspect if it was worth the trouble to review the entire <algorithm>'s specialization for contiguous ranges one by one to ensure that volatile arrays were supported...