http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50930
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |jwakely.gcc at gmail dot | |com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-10-31 07:53:30 UTC --- It seems to me that this defect also causes the compile problems of the library implementation of std::mutex via the Linuxthreads implementation of pthread.h. In this example an aggregate with a volatile member is initialized via aggregate-initialization through the PTHREAD_MUTEX_INITIALIZER, but in *addition* to the valid initialization of the volatile member an additional copy-initialization step of pthread_mutex_t is imposed by the compiler here as well.