[Issue 19206] New: after a dynamic array element in modified, the entire array appears to be unchanged
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 29 21:01:44 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19206
Issue ID: 19206
Summary: after a dynamic array element in modified, the entire
array appears to be unchanged
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: john.h.nixon1 at gmail.com
Created attachment 1711
--> https://issues.dlang.org/attachment.cgi?id=1711&action=edit
It contains the D source code, a description of the error and the output
produced.
The recursive function strongConnect is modifying elements of the dynamic array
G. It starts with
vertex "a" then moves to vertex "b". While working with "a" everything seems
fine, but with "b",
b.index is updated in vertex v but this last change (b.index = 1) is not
reflected in a change to G. Instead
a change to G is delayed until the second call of strongConnect for vertex "b".
I was using dmd 2.081.2. Full details are in the attachment.
--
More information about the Digitalmars-d-bugs
mailing list