https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123995

            Bug ID: 123995
           Summary: d: error: using result of function returning void with
                    assert(0)
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gcc dot gnu.org
  Target Milestone: ---

```
void test()
{
    fun(assert(0));
}

ulong fun(const typeof(*null) val)
{
    return 0;
}
```

<source>: In function 'test':
<source>:3:8: error: using result of function returning 'void'
    3 |     fun(assert(0));
      |        ^
Compiler returned: 1

Reply via email to