Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.2.0
-
None
-
Patch Available
-
Incorrect Behavior
Description
Code that uses the macro _RWSTD_OPERATOR_ARROW will be affected by this issue. Code that has '&*' is also very likely to be affected.
#include <deque>
#include <iterator>
#include <list>
#include <set>
#include <vector>
struct S
{
void operator& () const {};
};
int main ()
{
// this is just a compile test, it is not intended to run
std::reverse_iterator<S*>().operator->();
std::set<S>::iterator().operator->();
std::deque<S>::iterator().operator->();
std::list<S>::iterator().operator->();
return 0;
}