[PATCH] D21637: [libcxx] Don't use pthread initializers in constexpr constructors

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 23 07:31:49 PDT 2016


On Thu, Jun 23, 2016 at 02:27:12PM +0000, Ben Craig via cfe-commits wrote:
> bcraig added subscribers: joerg, bcraig.
> bcraig added a comment.
> 
> @joerg.  I think this has been fixed in newer versions of NetBSD.
> 
> Sure would be nice if someone could fix this on the MUSL side of things.
> 
> See https://bugs.musicpd.org/view.php?id=4110 for fun conversations about mutex, PTHREAD_MUTEX_INIT and constexpr.
> 
> Also, the first revision of this review:
> http://reviews.llvm.org/D19344

Right. Strictly speaking, the problem is the use of nested subfields,
which is a language defect. The only question for me is whether this
syntax works in pre-C++11 mode.

Joerg


More information about the cfe-commits mailing list