This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: core dumped when adding to vector
Anakreon Mendis wrote:
I would indeed be deeply shocked if there is a bug in vectors of
enums. However, if someone has a 5 line example which they believes
shows a bug in libstdc++ or gcc, I would have thought that bugzilla
would be the right place to post it (I'm happy to be told that that
isn't the right place)
In my program the problem occurs always but can not reproduce it
in a 10 line program. The problem should be in my code, not in the vector.
You could try using the divide-and-conquor strategy
to gradually reduce the size of the crashing app
until you find the smallest one that crashes.
Or you could try going back to the last version
of your app that didn't crash, and improve it from
there.
Beyond general advice like that, we can't help you fix your app.
- Dan
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html