Assertion `p_memberInit != __null' failed
Open
@ppete is already working on this.
Since Jan 9, 2026.
- Dominant language
- C
- Stars
- 688
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
Reproducer:
```cpp
typedef struct {
int foo;
} spinlock_t;
typedef struct wait_queue_head_t {
spinlock_t lock;
}wait_queue_head_t;
struct wait_queue_head_t work2 = {.lock = (spinlock_t ){(0)}};
void call_usermodehelper()
{
struct wait_queue_head_t work = {.lock = (spinlock_t ){(0)}};
work2;
}
```
```
Cxx_Grammar.C:275621: virtual SgType* SgDesignatedInitializer::get_type() const: Assertion `p_memberInit != __null' failed.
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.