Broken cast from fault to array pointer #2778.

This commit is contained in:
Christoffer Lerno
2026-01-20 17:43:16 +01:00
parent 9c435352b9
commit d7bfddf35e
3 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
// #target: linux-x64
import libc;
fn void a()
{
fault x = f; // #error: 'f' could not be found
ulong z = (ulong); // #error: Implicitly casting 'typeid' to 'ulong' is not permitted
z = (Sigset_t*)(x); // #error: Implicitly casting 'Sigset_t*' (ulong[16]*) to 'ulong'
}