Bug 11516 - GCC/G++ bug in nth_element
Summary: GCC/G++ bug in nth_element
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 13:14 CEST by Juan Magallon
Modified: 2013-10-23 17:09 CEST (History)
1 user (show)

See Also:
Source RPM: gcc-4.8.2-2.mga4.src.rpm
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.