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++/47453] Various non-conforming behaviors with braced-init-list initialization


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47453

--- Comment #6 from __vic <d.v.a at ngs dot ru> 2011-08-02 03:25:10 UTC ---
> 
> Why not say
> 
>     constexpr cond_variable() : cond PTHREAD_COND_INITIALIZER { }
> 

What if PTHREAD_COND_INITIALIZER is a just scalar?

> 
> You can define it as follows to make it work in both cases
> 
>     #define PTHREAD_COND_INITIALIZER {}

I cannot define/redefine this value. It's already defined in system headers...


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