This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/67503] String cannot be loaded from binary representation
- 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: Tue, 08 Sep 2015 17:12:18 +0000
- Subject: [Bug libstdc++/67503] String cannot be loaded from binary representation
- Auto-submitted: auto-generated
- References: <bug-67503-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67503
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to radventure from comment #5)
> When you use local buffer for storing string value it not necessary to have
> pointer to it. And we can reduce the size of string by the syzeof(pointer).
Well an union would work here except it would make all other code more messy.
There are a few places need to check that it equals the array before doing
something special.