Bug 11516

Summary: GCC/G++ bug in nth_element
Product: Mageia Reporter: Juan Magallon <jamagallon>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58800
Whiteboard:
Source RPM: gcc-4.8.2-2.mga4.src.rpm CVE:
Status comment:

Description Juan Magallon 2013-10-23 13:14:45 CEST
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:
Comment 1 Thomas Backlund 2013-10-23 17:09:16 CEST
upstream fix added in gcc-4.8.2-3

Thanks for the report

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED