| Issue |
109538
|
| Summary |
Requires _expression_ with local parameter of void type
|
| Labels |
|
| Assignees |
|
| Reporter |
Fedr
|
This program is accepted by Clang (`requires` is evaluated as `true`):
```
static_assert( requires(void t) {t;} );
```
but rejected by GCC and MSVC with hard error: https://gcc.godbolt.org/z/W7f3zqbMb
If it were evaluated as `false`, it would be more understandable.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs