poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/26527] Constructors of pinned structs and unions don't resp


From: m.nabipoor at yahoo dot com
Subject: [Bug default/26527] Constructors of pinned structs and unions don't respect field initializers
Date: Thu, 17 Sep 2020 13:41:22 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26527

--- Comment #3 from Mohammad-Reza Nabipoor <m.nabipoor at yahoo dot com> ---
Hi.

Example for incorrect construction of unions:

```
(poke) deftype U = union { byte[1] d1 : (d1[0] & 0x80) == 0; byte[2] d2 :
(d2[0] & 0xe0) == 0xc0 && (d2[1] & 0xc0) == 0x80; }
(poke) U {}
U {d1=[0UB]}
(poke) U{ d2 = [0xd8UB, 0xb3UB] }
U {d1=[0UB]}
(poke)
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]