[Bug c++/50930] [C++0x] Valid brace-or-equal-initializer of non-static data member rejected
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Mon Oct 31 07:53:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list