Bug 555771 - spurious "array subscript is above array bounds" error with boost::is_any_of
Summary: spurious "array subscript is above array bounds" error with boost::is_any_of
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: boost
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Benjamin Kosnik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-15 13:44 UTC by Tim Moore
Modified: 2013-08-09 05:49 UTC (History)
7 users (show)

Fixed In Version: 1.41.0-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-14 18:25:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
test case (422 bytes, text/plain)
2010-01-15 13:44 UTC, Tim Moore
no flags Details

Description Tim Moore 2010-01-15 13:44:03 UTC
Created attachment 384617 [details]
test case

Compiling the attached program produces:

 g++ -Wall -c -g -O2 -Werror -fstack-protector-all foo2.cxxcc1plus: warnings being treated as errors
/usr/lib/gcc/i686-redhat-linux/4.4.2/../../../../include/c++/4.4.2/bits/stl_algo.h: In member function ‘virtual void Foo::draw()’:
/usr/lib/gcc/i686-redhat-linux/4.4.2/../../../../include/c++/4.4.2/bits/stl_algo.h:2178: error: array subscript is above array bounds

This error doesn't occur on x86_64 or with -O. It's possibly related
to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40946

Tim

Installed Packages
boost.i686                                1.39.0-8.fc12                 @fedora 
boost-date-time.i686                      1.39.0-8.fc12                 @fedora 
boost-devel.i686                          1.39.0-8.fc12                 @fedora 
boost-filesystem.i686                     1.39.0-8.fc12                 @fedora 
boost-graph.i686                          1.39.0-8.fc12                 @fedora 
boost-iostreams.i686                      1.39.0-8.fc12                 @fedora 
boost-math.i686                           1.39.0-8.fc12                 @fedora 
boost-program-options.i686                1.39.0-8.fc12                 @fedora 
boost-python.i686                         1.39.0-8.fc12                 @fedora 
boost-regex.i686                          1.39.0-8.fc12                 @fedora 
boost-serialization.i686                  1.39.0-8.fc12                 @fedora 
boost-signals.i686                        1.39.0-8.fc12                 @fedora 
boost-system.i686                         1.39.0-8.fc12                 @fedora 
boost-test.i686                           1.39.0-8.fc12                 @fedora 
boost-thread.i686                         1.39.0-8.fc12                 @fedora 
boost-wave.i686                           1.39.0-8.fc12                 @fedora 
gcc.i686                                  4.4.2-20.fc12                 @updates
gcc-c++.i686                              4.4.2-20.fc12                 @updates

Comment 2 Denis Arnaud 2010-06-24 13:34:02 UTC
Is that issue still persisting on Fedora 13 with Boost-1.41?

Comment 3 Benjamin Kosnik 2010-09-14 18:25:05 UTC
This is fixed in F13/F14/RHEL6, and as F12 I close to EOL I am going to triage this as WONTFIX.


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