[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ICE] couldn't promote integral to integral struct
From: |
apache2 |
Subject: |
[ICE] couldn't promote integral to integral struct |
Date: |
Wed, 6 Apr 2022 16:38:57 +0200 |
User-agent: |
Mutt/1.9.3 (2018-01-21) |
#!!# type a = struct uint<32> { uint<16> field1; uint<16> field2; };
#!!# type b = struct { little uint<32> my_a; }
#!!# var x = open("*data*");
#!!# (b @ x : 0#B) as a;
1:2: internal compiler error: couldn't promote integral to integral struct
Important information has been dumped in /tmp/pokeiQKOL3.
Please attach it to a bug report and send it to poke-devel@gnu.org.
This is a bit surprising, I stumbled into it when trying to write:
#!!# type b = struct { little a my_a; };
which results in:
#!!# type b = struct { little a my_a; }
<stdin>:1:19: warning: useless endianness annotation in field
type b = struct { little a my_a; };
^~~~~~~~~~~~~~
(maybe that's also a bug?)
- [ICE] couldn't promote integral to integral struct,
apache2 <=