[Bug libstdc++/11240] operator-() fails for reverse_iterator<const char*>
ysbeer at af dot org dot za
gcc-bugzilla@gcc.gnu.org
Wed Jun 18 22:48:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11240
------- Additional Comments From ysbeer at af dot org dot za 2003-06-18 22:48 -------
Further investigation seems to indicate that the address of the literal is used
in one place and the array address is used in another. It loads the address of
the stack variable and substracts the address of the constant string. This will
explain the massive difference when using the pointer substraction. It seems
more and more like a code generation issue and not a library issue.
(Thanks goes to Erwin on freenode.net#c++ for working through the assembler part)
More information about the Gcc-bugs
mailing list