Bug 375 - designated initializers not compatible with C++
Summary: designated initializers not compatible with C++
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: nptl (show other bugs)
Version: 2.3.3
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-09 01:18 UTC by Richard Henderson
Modified: 2019-04-10 15:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.