| Issue |
183665
|
| Summary |
[clang] crash when evaluating __is_bitwise_cloneable on an invalid type
|
| Labels |
clang:frontend,
crash-on-invalid
|
| Assignees |
|
| Reporter |
k-arrows
|
Reproducer:
https://godbolt.org/z/EbzvePqbY
```cpp
struct ABC {
ABCD ptr;
};
static_assert(__is_bitwise_cloneable(ABC) == true);
```
Output:
```console
<source>:2:3: error: unknown type name 'ABCD'; did you mean 'ABC'?
2 | ABCD ptr;
| ^~~~
| ABC
<source>:1:8: note: 'ABC' declared here
1 | struct ABC {
| ^
<source>:2:8: error: field has incomplete type 'ABC'
2 | ABCD ptr;
| ^
<source>:1:8: note: definition of 'ABC' is not complete until the closing '}'
1 | struct ABC {
| ^
Program terminated with signal: SIGSEGV
Compiler returned: 139
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs