[Bug rtl-optimization/14863] [3.4/3.5 regression] unit-at-a-time causes miscompilation

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 3 01:08:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-03 01:08 -------
How can the last one be valid c++:
	const int &operator*()
	{
		IntervalIterator tmp = current;
		return *--tmp;
	}
He is returning an const int reference for tmp.val_m.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14863



More information about the Gcc-bugs mailing list