Summary: Pointer becoming invalid
--- Comment #0 from Jesse Phillips <jesse.k.phillip...@gmail.com> 2011-03-30
21:56:47 PDT ---
Created an attachment (id=936)
I've been working toward a CSV parser that works efficiently with an input
range. I'm testing it with string and have come to the conclusion there is a
bug in DMD. But I'm having some issue with reducing this code further.
The issue manifests itself when I pass a string to a function, which is stored
in a range that produces a range that stores a pointer to the string, which
modifies the dereferenced string pointer.
The pointer is no longer valid by the time popFront is called. A segmentation
fault is produced on line 95 inside countUntil (the string is garbage).
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------