I was bitten by this g++ bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58800 The proposed solution involves changing a couple '__last - 2' to '__Last - 1' in libstdc++-v3/include/bits/stl_algo.h I have tested changign it in system includes and my user code works again, but I thikn it should be changed in gcc sources and compilers rebuilt. And I don't know how much user space code is affected (packages using nth_element) ... Is there an easy way to know this in build system ? TIA Reproducible: Steps to Reproduce:
upstream fix added in gcc-4.8.2-3 Thanks for the report
Status: NEW => RESOLVEDCC: (none) => tmbResolution: (none) => FIXED