slice valarrays with std::string -> segfault
Paolo Carlini
pcarlini@suse.de
Sat Dec 10 22:05:00 GMT 2005
Jhair Tocancipa Triana wrote:
>Please consider the program below (backtrace included (gcc 4.0.2
>(Ubuntu))). The program crashes when doing a std::slice on a valarray
>containing a structure with a string element in it.
>
>
Just wanted to say that this has nothing to do with string specifically,
happens also together with a completely different implementation of
string or, e.g., together with a deque data member.
I think something is going wrong with types characterized by
""non-trivial"" constructors, e.g., doing memory allocation from the heap.
Gaby can you look into this?
Thanks for your report,
Paolo.
More information about the Gcc
mailing list