| Issue |
176862
|
| Summary |
[libc++] Fix handling iterators with proxy subscript in heap algorithms
|
| Labels |
libc++
|
| Assignees |
|
| Reporter |
hewillk
|
Recently, libstdc++ fixed the issue of directly using proxy subscripts in algorithms: https://github.com/gcc-mirror/gcc/commit/76ad28b11266606fcc1571d0ef92d3f2ef402bfb
libc++ seems to have a similar issue:
https://github.com/llvm/llvm-project/blob/7dc2cd4c6840f0c3eeca4d822709a7605836d000/libcxx/include/__algorithm/sift_down.h#L48
However, since this problem is so corner, i.e., I have basically never seen an iterator that does not return a `reference` in `operator[]`. Do we need to fix this?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs