This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31314] Segmentation fault when assign std::string to another std::string when using std::vector and inheritance
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Mar 2007 16:34:01 -0000
- Subject: [Bug c++/31314] Segmentation fault when assign std::string to another std::string when using std::vector and inheritance
- References: <bug-31314-14290@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31314