https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58601
Yrong <yronglin777 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yronglin777 at gmail dot com
--- Comment #1 from Yrong <yronglin777 at gmail dot com> ---
GCC emit an misleading diagnostic for the following code:
```cpp
class alignas(void) A {};
```
```
<source>:1:15: error: invalid application of 'alignof' to a void type
1 | class alignas(void) A {};
| ^~~~
Compiler returned: 1
```
https://godbolt.org/z/8exT8366c