This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47453] Various non-conforming behaviors with braced-init-list initialization
- From: "d.v.a at ngs dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 03:25:49 +0000
- Subject: [Bug c++/47453] Various non-conforming behaviors with braced-init-list initialization
- Auto-submitted: auto-generated
- References: <bug-47453-4@http.gcc.gnu.org/bugzilla/>
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...