[Bug libstdc++/30416] SIGSEGV in valarray::cshift(n) on empty array

sebor at roguewave dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 10 05:55:00 GMT 2007



------- Comment #9 from sebor at roguewave dot com  2007-01-10 05:55 -------
Even if the spec did permit undefined behavior it would make sense to implement
something reasonable if it's easy (as Paolo suggests it might be) and if the
cost
is acceptable. But just to put your mind at ease I'll write up an issue and
make
it clear that cshift really is required to simply return *this for empty
arrays.


-- 


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



More information about the Gcc-bugs mailing list