This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/17364] New: c99 designators in nptl <pthreads.h> break libstdc++
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2004 01:13:11 -0000
- Subject: [Bug bootstrap/17364] New: c99 designators in nptl <pthreads.h> break libstdc++
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If NPTL is installed as the system pthreads, we have
# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
{ .__data = { .__kind = PTHREAD_MUTEX_RECURSIVE_NP } }
which cannot be handled by the C++ parser, and so we die
building libstdc++-v3/libsupc++/guard.cc.
The quickest fix might be to always use runtime initialization
of recursive mutexes for pthreads. Long term, of course, it
would be nice to support full c99 designated initializers in C++.
--
Summary: c99 designators in nptl <pthreads.h> break libstdc++
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,jason at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17364