This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42734] trivial use of std::thread fails with "pure virtual method called"
- From: "nacitar at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Oct 2010 18:46:16 +0000
- Subject: [Bug libstdc++/42734] trivial use of std::thread fails with "pure virtual method called"
- Auto-submitted: auto-generated
- References: <bug-42734-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42734
Jacob McIntosh <nacitar at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nacitar at gmail dot com
--- Comment #29 from Jacob McIntosh <nacitar at gmail dot com> 2010-10-15 18:46:05 UTC ---
This bug is not invalid.
If you build with
g++ -std=c++0x -pthread -march=i386 whatever.cpp
A binary built in this way exhibits the bug the reporter mentions.
Also, on a 64-bit system
g++ -std=c++0x -pthread -m32 -march=i386 whatever.cpp
This also builds a binary with this issue.
The -march is what you guys missed to trigger this issue.
i486 works
i586 works
i686 works
pentium4 works
i386 exhibits the error mentioned by the reporter
Tested with g++ 4.4.3 on a 32-bit mandrake system, a 64-bit gentoo system, and
a 64-bit ubuntu system.