Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 73219 Details for
Bug 113071
gcc-3.3.6: standard library segfaults when using a huge std::vector<bool>
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The code that causes std::vector<bool> to crash
bitvec.cpp (text/plain), 367 bytes, created by
mrsteven
on 2005-11-20 04:33:52 UTC
(
hide
)
Description:
The code that causes std::vector<bool> to crash
Filename:
MIME Type:
Creator:
mrsteven
Created:
2005-11-20 04:33:52 UTC
Size:
367 bytes
patch
obsolete
>#include <vector> >#include <iostream> >#include <limits> > >using namespace std; > >int main() >{ > try > { > vector<bool> vec(numeric_limits<vector<bool>::size_type>::max(), true); //also happens when I subtract a small value from the size, eg 10 > vec[0] = false; > return 0; > } > catch(...) > { > cerr << "Error!" << endl; > return 1; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 113071
: 73219 |
73220