D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7507 - DMD crashes when trying to call to!string on a float4 array property
Summary: DMD crashes when trying to call to!string on a float4 array property
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 major
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2012-02-15 08:08 UTC by Ben Grabham
Modified: 2013-02-02 11:46 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ben Grabham 2012-02-15 08:08:08 UTC
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 SomeDude 2012-04-20 00:28:10 UTC
2.059 Win32

PS E:\DigitalMars\dmd2\samples> dmd bug.d
Internal error: ..\ztc\cg87.c 1699
Comment 2 Andrej Mitrovic 2013-02-02 11:46:26 UTC
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.