Re: Why does a switch break cause a segmentation fault

2019-07-23 Thread Boris Carvajal via Digitalmars-d-learn
On Tuesday, 23 July 2019 at 08:04:07 UTC, adamgoldberg wrote: On Tuesday, 23 July 2019 at 00:01:09 UTC, Exil wrote: On Monday, 22 July 2019 at 22:05:17 UTC, adamgoldberg wrote: Hey, I just happened to be writing a program in D an stumbled upon a bug, that causes it to terminate after receiving

Re: Why does a switch break cause a segmentation fault

2019-07-23 Thread adamgoldberg via Digitalmars-d-learn
On Tuesday, 23 July 2019 at 00:01:09 UTC, Exil wrote: On Monday, 22 July 2019 at 22:05:17 UTC, adamgoldberg wrote: Hey, I just happened to be writing a program in D an stumbled upon a bug, that causes it to terminate after receiving a SEGV signal, nothing wierd so far but it looks everything I

Re: Why does a switch break cause a segmentation fault

2019-07-22 Thread Eric via Digitalmars-d-learn
Shouldn't (stream == null) be (stream is null)? -Eric From: "adamgoldberg via Digitalmars-d-learn" To: digitalmars-d-learn@puremagic.com Sent: Monday, July 22, 2019 3:05:17 PM Subject: Why does a switch break cause a segmentation fault Hey, I just happened to be writing

Re: Why does a switch break cause a segmentation fault

2019-07-22 Thread Exil via Digitalmars-d-learn
On Monday, 22 July 2019 at 22:05:17 UTC, adamgoldberg wrote: Hey, I just happened to be writing a program in D an stumbled upon a bug, that causes it to terminate after receiving a SEGV signal, nothing wierd so far but it looks everything I tried shows it is the break statement inside of a swit

Why does a switch break cause a segmentation fault

2019-07-22 Thread adamgoldberg via Digitalmars-d-learn
Hey, I just happened to be writing a program in D an stumbled upon a bug, that causes it to terminate after receiving a SEGV signal, nothing wierd so far but it looks everything I tried shows it is the break statement inside of a switch. It seems to have a relatively random chance of occuring, a