[Bug rtl-optimization/14863] [3.4 regression] unit-at-a-time causes miscompilation
rguenth at tat dot physik dot uni-tuebingen dot de
gcc-bugzilla@gcc.gnu.org
Wed Jun 2 07:38:00 GMT 2004
------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2004-06-02 07:38 -------
Subject: Re: [3.4 regression] unit-at-a-time
causes miscompilation
> Why gcc does not print 'warning: returning reference to temporary' in
> reverse_iterator::operator* () ?
>
> btw, this is from bits/stl_iterator.h:148:
> reference
> operator*() const
> {
> _Iterator __tmp = current;
> return *--__tmp;
> }
Pobably because its in a system header. Ugh.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14863
More information about the Gcc-bugs
mailing list