I think this is already fixed in the current dmd 2.063alpha.
Bye,
bearophile
You walking encyclopedia. ;)
Good to know.
Namespace:
import std.stdio;
int[2] getSize() {
return [42, 23];
}
int width() {
return getSize()[0];
}
void main()
{
writeln("Hello world!");
}
Compilation output:
Internal error: ../ztc/cgcs.c 343
I think this is already fixed in the current dmd
On 04/24/2013 10:25 PM, Namespace wrote:
import std.stdio;
int[2] getSize() {
return [42, 23];
}
int width() {
return getSize()[0];
}
void main()
{
writeln("Hello world!");
}
Compilation output:
Internal error: ../ztc/cgcs.c 343
http://dpaste.1azy.net/a
import std.stdio;
int[2] getSize() {
return [42, 23];
}
int width() {
return getSize()[0];
}
void main()
{
writeln("Hello world!");
}
Compilation output:
Internal error: ../ztc/cgcs.c 343
http://dpaste.1azy.net/a1897e84
I don't know if this
Please check if your case is equal to
http://d.puremagic.com/issues/show_bug.cgi?id=4414
Hi guys,
I get an internal error in \ztc\cgcs.c 352 when I try to do the following:
HashMap!(uint, float[2]) example;
void main() {
example = new HashMap!(uint, float[2])();
example.set(0, [10.f, 20.f]);
example.set(10, [100.f, 200.f]);
foreach (ref c; example.keys) std.stdio.writel