This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50930] [C++0x] Valid brace-or-equal-initializer of non-static data member rejected
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Oct 2011 07:53:30 +0000
- Subject: [Bug c++/50930] [C++0x] Valid brace-or-equal-initializer of non-static data member rejected
- Auto-submitted: auto-generated
- References: <bug-50930-4@http.gcc.gnu.org/bugzilla/>
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.