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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> I don't see such a sentence in C++17 nor other C++ standards.

It was reported for C, not C++ :).

Anyways clang rejects it in C mode (with -pedantic-errors):
```
<source>:1:13: error: function cannot return qualified void type 'const void'
[-Werror,-Wqualified-void-return-type]
    1 | const void f(void){}
      |             ^

```

Reply via email to