[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] pkl: Fix bit-offset of mapped integral struct
From: |
Jose E. Marchesi |
Subject: |
Re: [PATCH] pkl: Fix bit-offset of mapped integral struct |
Date: |
Thu, 28 Jan 2021 09:06:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> On Thu, Jan 28, 2021 at 08:28:02AM +0100, Jose E. Marchesi wrote:
>>
>> > Hi, Jose.
>> >
>> > Fix with no test!
>> > I was unable to convince DejaGNU to run my tests :(
>>
>> Hm, how so?
>> What are the difficulties?
>>
>
> Last night I was too tired to notice that poke is crashing!
> And the reason was the following data type:
>
> ```poke
> type Foo =
> struct
> {
> uint<8> a;
> struct uint<32>
> {
> uint<16> b1;
> uint<16> b2;
> } b;
> };
> ```
>
> The unammed `struct uint<32>` crashes the poke which is a known bug!
Yeah I'm looking to fix that. Same workaround: use an intermediary
type.
> I'll send a new patch with tests :)
Thanks!