------- Comment #1 from redi at gcc dot gnu dot org 2009-11-27 18:31 ------- (In reply to comment #0) > > Perhaps -pthread should be implied by -std=c++0x/-std=gnu++0x? (Except at > least > nominally one could use std::thread with DCE or Solaris threads, so is > -pthread > right anyway?)
-pthread is target-specific, there's no single switch that says "use threads" for all platforms. Some need no switch at all, others have platform-specific switches, and it may depends on the threading model selected at configure time with --enable-threads > At least an assert() failure or (preferably) a compile-time error would be > nice; Agreed -- redi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-11-27 18:31:21 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42198