This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52967] Segmentation fault on std::vector destruction
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Apr 2012 00:15:05 +0000
- Subject: [Bug c++/52967] Segmentation fault on std::vector destruction
- Auto-submitted: auto-generated
- References: <bug-52967-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52967
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libstdc++ |c++
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-13 00:15:05 UTC ---
I don't know if this is not undefined code.
> v[0].a = run();
Is this:
double &a = v[0].a;
a = run();
Or:
double tmp = run();
v[0].a = tmp;
I think both are correct because of the way the C++ standard defines =.