[Bug c++/31314] Segmentation fault when assign std::string to another std::string when using std::vector and inheritance

2007-03-22 Thread wmacura at gmail dot com
--- Comment #1 from wmacura at gmail dot com 2007-03-22 15:58 --- Created an attachment (id=13252) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13252action=view) Testcase (seg at line 130) Build instruction: g++ -g stringtest.cpp -o stringtest --

[Bug c++/31314] Segmentation fault when assign std::string to another std::string when using std::vector and inheritance

2007-03-22 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-22 16:34 --- The problem is with: Row r = r.construct(rawdata.at(i)); You are using r before it is constructored. This is not a bug in GCC but in your code. -- pinskia at gcc dot gnu dot org changed:

[Bug c++/31314] Segmentation fault when assign std::string to another std::string when using std::vector and inheritance

2007-03-22 Thread wmacura at gmail dot com
--- Comment #3 from wmacura at gmail dot com 2007-03-22 16:46 --- Subject: Re: Segmentation fault when assign std::string to another std::string when using std::vector and inheritance :-o Damn. Construct() was a static function for a while and I didn't notice this when I started