This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/42734] trivial use of std::thread fails with "pure virtual method called"


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42734

--- Comment #32 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-15 19:37:46 UTC ---
I'm not sure -march=i386 explains the original report, since the OP said his
compiler command was:

$ g++ -std=c++0x -pthread thread.cc -o thread

Does the front-end disable the HAVE_SYNC_COMPARE_AND_SWAP macros if you compile
with (implicit or explicit) march=i386 ?
If not, the library will think it can use builtins which aren't available.  I
seem to recall known issues arising from mismatches in -march options used when
building and using the library.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]