Bug 7507 – DMD crashes when trying to call to!string on a float4 array property

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-15T08:08:00Z
Last change time
2013-02-02T11:46:26Z
Keywords
ice
Assigned to
nobody
Creator
dlang
See also
http://d.puremagic.com/issues/show_bug.cgi?id=7508

Comments

Comment #0 by dlang — 2012-02-15T08:08:08Z
When trying to compile the code below, dmd causes a segmentation fault: import core.simd; import std.conv; import std.stdio; void main() { float4 fl = 2; writefln("%s", to!string(fl.array)); }
Comment #1 by lovelydear — 2012-04-20T00:28:10Z
2.059 Win32 PS E:\DigitalMars\dmd2\samples> dmd bug.d Internal error: ..\ztc\cg87.c 1699
Comment #2 by andrej.mitrovich — 2013-02-02T11:46:26Z
Doesn't crash anymore in 2.061: test.d(8): Error: template std.conv.to!(string).to does not match any function template declaration. You could make an enhancement request for Phobos to add support for vectors to std.conv.