This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50930] [C++0x] Valid brace-or-equal-initializer of non-static data member rejected


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]