-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed as not planned
Labels
invalidResolved as invalid, i.e. not a bugResolved as invalid, i.e. not a buglibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Description
Failure triggered by https://reviews.llvm.org/D149543
Reduced test case
#include <vector>
std::vector<bool> vec(3, true);
#define RI std::reverse_iterator<std::vector<bool>::iterator>
class D : public RI {
public:
RI::iterator_type getCurrent() { return current; }
D(bool a=true) {
if (a)
current = vec.begin();
else
current = vec.end();
}
};
int test() {
D x(true);
D y(false);
return std::operator==<std::vector<bool>::iterator>(x, y);
}
Compiler explorer: https://godbolt.org/z/ahM1PnTYr
Metadata
Metadata
Assignees
Labels
invalidResolved as invalid, i.e. not a bugResolved as invalid, i.e. not a buglibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.