Segfault on simple program?
Anthony Goins
neontotem at gmail.com
Fri May 31 17:32:37 PDT 2013
On Friday, 31 May 2013 at 17:14:46 UTC, Shriramana Sharma wrote:
> 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?
Works for me ubuntu 64.
Do you have both versions installed?
Would it compile if you used the wrong druntime / phobos
libraries?
More information about the Digitalmars-d-learn
mailing list