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;
}

Reply via email to