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: "wmacura at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Mar 2007 16:46:37 -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 #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 butchering the code.
Thanks.
Wiktor
On 22 Mar 2007 16:34:01 -0000, pinskia at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
>
> ------- 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
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31314