[Bug libstdc++/51296] Several 30_threads tests FAIL on Tru64 UNIX
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 26 16:03:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51296
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-26 15:18:40 UTC ---
Does this reduced test work with -std=gnu++11 -pthread ?
#include <stdio.h>
#include <string.h>
#include <pthread.h>
struct M {
pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
constexpr M() noexcept = default;
};
int main()
{
M m;
int e = pthread_mutex_lock(&m.m);
if (e)
printf("%d : %s\n", e, strerror(e));
return e;
}
More information about the Gcc-bugs
mailing list