Bug 375

Summary: designated initializers not compatible with C++
Product: glibc Reporter: Richard Henderson <rth>
Component: nptlAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: 2.3.3   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Richard Henderson 2004-09-09 01:18:17 UTC
E.g.

# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
  { .__data = { .__kind = PTHREAD_MUTEX_RECURSIVE_NP } }

This definition isn't valid C++, nor can it be parsed by any version
of GNU C++ even as an extension.

This is a functionality regression from linuxthreads, which did not
use designated initializers.
Comment 1 Ulrich Drepper 2004-09-09 04:59:40 UTC
I've some good suggestions what to do with those C++ "designers".

I changed the header, reluctantly.