[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug default/26695] New: Abortion on construction of struct with an arra
From: |
m.nabipoor at yahoo dot com |
Subject: |
[Bug default/26695] New: Abortion on construction of struct with an array field with non-const boundary |
Date: |
Thu, 01 Oct 2020 19:15:59 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26695
Bug ID: 26695
Summary: Abortion on construction of struct with an array field
with non-const boundary
Product: poke
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: default
Assignee: unassigned at sourceware dot org
Reporter: m.nabipoor at yahoo dot com
CC: poke-devel at gnu dot org
Target Milestone: ---
Hi.
Abortion on construction:
The `bytes = [0UB, 0UB];` statement in `reset` method triggers the bug.
```poke
deftype S = struct
{
defvar nbytes = 2;
byte[nbytes] bytes;
method reset = void:
{
/* These are OK */
bytes[0] = 0UB;
bytes[1] = 0UB;
/* Problematic statement */
bytes = [0UB, 0UB];
}
};
```
(poke) defvar s = S{};
lt-poke: ../../libpoke/pvm.jitter:1006: pvm_execute_or_initialize: Assertion
`PVM_VAL_CLS_ENV (closure) != NULL' failed.
Aborted (core dumped)
P.S. I tried my best to come up with a proper title, but I feel the current
title is not good. Feel free to change it to something more expressive.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug default/26695] New: Abortion on construction of struct with an array field with non-const boundary,
m.nabipoor at yahoo dot com <=