This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/67843] experimental/filesystem/iterators/directory_iterator.cc fails on armv5t
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Oct 2015 22:11:38 +0000
- Subject: [Bug libstdc++/67843] experimental/filesystem/iterators/directory_iterator.cc fails on armv5t
- Auto-submitted: auto-generated
- References: <bug-67843-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67843
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I've just realised this is probably the same issue as PR42734
If you compile for armv5 then shared_ptr uses a mutex internally, because armv5
doesn't support the necessary atomics. The library is compiled for armv7, so
its shared_ptr uses atomics. When you pass a shared_ptr from an object
compiled with armv5 to a library compiled as armv7 they disagree on the size
and layout of the object, and all hell breaks loose.