blob: f3488ea07541b83d9f1a6d1af82a19964cd2911d [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct iterator;
struct const_iterator {
const_iterator(const iterator&);
bool operator==(const const_iterator &ci) const = delete;
};
struct iterator {
bool operator==(const const_iterator &ci) const {
return ci == *this; // { dg-error "deleted" "" { target c++17_down } }
} // { dg-warning "reversed" "" { target c++20 } .-1 }
};