Issue Details (XML | Word | Printable)

Key: STDCXX-612
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Farid Zaripov
Reporter: Travis Vitek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

many iterator types do not work with types that implement unary operator&

Created: 23/Oct/07 12:37 AM   Updated: 02/Jun/08 06:22 PM
Return to search
Component/s: 24. Iterators
Affects Version/s: 4.2.0
Fix Version/s: 4.3.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works operator_arrow.patch 2007-11-20 03:56 PM Farid Zaripov 9 kB

Patch Info: Patch Available
Severity: Incorrect Behavior


 Description  « Hide
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;
}



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Farid Zaripov made changes - 20/Nov/07 03:39 PM
Field Original Value New Value
Assignee Farid Zaripov [ farid ]
Farid Zaripov made changes - 20/Nov/07 03:40 PM
Attachment operator_arrow.patch [ 12369884 ]
Farid Zaripov made changes - 20/Nov/07 03:40 PM
Patch Info [Patch Available]
Farid Zaripov made changes - 20/Nov/07 03:56 PM
Attachment operator_arrow.patch [ 12369886 ]
Farid Zaripov made changes - 20/Nov/07 03:57 PM
Attachment operator_arrow.patch [ 12369884 ]
Farid Zaripov made changes - 18/Jan/08 06:37 PM
Fix Version/s 4.2.1 [ 12312690 ]
Fix Version/s 4.3 [ 12312692 ]
Farid Zaripov made changes - 14/May/08 04:46 PM
Assignee Farid Zaripov [ farid ]
Martin Sebor made changes - 02/Jun/08 06:20 PM
Assignee Travis Vitek [ vitek ]
Martin Sebor made changes - 02/Jun/08 06:22 PM
Assignee Travis Vitek [ vitek ] Farid Zaripov [ farid ]