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

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.


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