Segfault on simple program?

Shriramana Sharma samjnaa at gmail.com
Fri May 31 10:14:13 PDT 2013


import std.stdio ;

void foo ( int[] array ) {
	foreach ( i ; array ) { writeln ( i ) ; }
}

void main () {
	foo ( [ 1, 2, 3 ] ) ;
}

On both DMD 2.062 and 2.063 this compiles OK but causes a segfault.
I'm running Kubuntu Raring 64-bit. Any hints?

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा


More information about the Digitalmars-d-learn mailing list