[Issue 5289] std.conv.parse!double() results in a segmentation fault.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 29 03:56:32 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5289


Bernard Helyer <blood.of.life at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blood.of.life at gmail.com


--- Comment #1 from Bernard Helyer <blood.of.life at gmail.com> 2010-11-29 03:55:04 PST ---
It's because you're using a string literal. parse takes it's argument by ref,
and advances the array. The string literal is not an lvalue, but is permitted
by DMD anyway -- this is the real bug. If you put the string in a variable, it
will work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list