[Bug c++/49894] Uniform initialization in constructor (C++0x)

2011-07-29 Thread d.v.a at ngs dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49894 --- Comment #4 from __vic 2011-07-29 10:17:35 UTC --- Created attachment 24861 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24861 Preprocessor output

[Bug c++/49894] Uniform initialization in constructor (C++0x)

2011-07-29 Thread d.v.a at ngs dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49894 --- Comment #3 from __vic 2011-07-29 10:13:16 UTC --- > test.cpp:7:84: error: could not convert '{{0, 0}, 0, "", 0}' from > '' to 'pthread_cond_t' > Initializer is: {{0, 0}, 0, "", 0}

[Bug c++/49894] Uniform initialization in constructor (C++0x)

2011-07-29 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49894 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c++/49894] Uniform initialization in constructor (C++0x)

2011-07-28 Thread d.v.a at ngs dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49894 --- Comment #1 from __vic 2011-07-29 06:28:47 UTC --- class mutex { ::pthread_mutex_t mtx; public: constexpr mutex() : mtx(PTHREAD_MUTEX_INITIALIZER) {} }; Compiles fine... What is the difference?