Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
February 16, 2006 assert bug | ||||
---|---|---|---|---|
| ||||
Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147
import std.stdio;
void main()
{
assert( "\u00aa", "\u00aa\uff16");
}
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
16/02/2006 11:54:44 AM
|
February 16, 2006 Re: assert bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell Attachments: | Derek Parnell schrieb am 2006-02-16:
>
> Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147
>
> import std.stdio;
> void main()
> {
> assert( "\u00aa", "\u00aa\uff16");
> }
I can't reproduce this with DMD-0.147 and Linux.
Thomas
|
February 16, 2006 Re: assert bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | On Thu, 16 Feb 2006 22:59:28 +1100, Thomas Kuehne <thomas-dloop@kuehne.cn> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Derek Parnell schrieb am 2006-02-16: >> >> Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147 >> >> import std.stdio; >> void main() >> { >> assert( "\u00aa", "\u00aa\uff16"); >> } > > I can't reproduce this with DMD-0.147 and Linux. I checked again on WinXP SP2 and it still crashes DMD. -- Derek Parnell Melbourne, Australia |
February 16, 2006 Re: assert bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | Derek Parnell wrote:
> On Thu, 16 Feb 2006 22:59:28 +1100, Thomas Kuehne <thomas-dloop@kuehne.cn> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Derek Parnell schrieb am 2006-02-16:
>>>
>>> Just a tiny insignificant bug. The (invalid) code below crashes DMD
>>> 0.147
>>>
>>> import std.stdio;
>>> void main()
>>> {
>>> assert( "\u00aa", "\u00aa\uff16");
>>> }
>>
>> I can't reproduce this with DMD-0.147 and Linux.
>
> I checked again on WinXP SP2 and it still crashes DMD.
>
> --Derek Parnell
> Melbourne, Australia
Confirmed with DMD 0.146 on Windows.
|
February 16, 2006 Re: assert bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | Thomas Kuehne wrote:
> Derek Parnell schrieb am 2006-02-16:
>>> Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147
>>>
>>> import std.stdio;
>>> void main()
>>> {
>>> assert( "\u00aa", "\u00aa\uff16");
>>> }
>
> I can't reproduce this with DMD-0.147 and Linux.
>
> Thomas
>
>
Tested with dmd 0.147 on linux:
$ dmd -w testcase.d
t21.d(4): found ',' when expecting ')'
t21.d(4): found '"\u00aa"' when expecting ';' following 'statement'
t21.d(4): found ')' instead of statement
I'm I missing something?
|
February 17, 2006 Re: assert bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jari-Matti Mäkelä Attachments: | Jari-Matti Mäkelä schrieb am 2006-02-16:
> Thomas Kuehne wrote:
>> Derek Parnell schrieb am 2006-02-16:
>>>> Just a tiny insignificant bug. The (invalid) code below crashes DMD 0.147
>>>>
>>>> import std.stdio;
>>>> void main()
>>>> {
>>>> assert( "\u00aa", "\u00aa\uff16");
>>>> }
>>
>> I can't reproduce this with DMD-0.147 and Linux.
>>
>> Thomas
>>
>>
>
> Tested with dmd 0.147 on linux:
>
> $ dmd -w testcase.d
>
> t21.d(4): found ',' when expecting ')'
> t21.d(4): found '"\u00aa"' when expecting ';' following 'statement'
> t21.d(4): found ')' instead of statement
>
> I'm I missing something?
The magic word in the orginal report was "crashes", it wasn't "failes to compile".
Thomas
|
February 17, 2006 Re: assert bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Deewiant Attachments: | Deewiant schrieb am 2006-02-16: > Derek Parnell wrote: >> On Thu, 16 Feb 2006 22:59:28 +1100, Thomas Kuehne <thomas-dloop@kuehne.cn> wrote: >> >>> >>> Derek Parnell schrieb am 2006-02-16: >>>> >>>> Just a tiny insignificant bug. The (invalid) code below crashes DMD >>>> 0.147 >>>> >>>> import std.stdio; >>>> void main() >>>> { >>>> assert( "\u00aa", "\u00aa\uff16"); >>>> } >>> >>> I can't reproduce this with DMD-0.147 and Linux. >> >> I checked again on WinXP SP2 and it still crashes DMD. >> >> --Derek Parnell >> Melbourne, Australia > > Confirmed with DMD 0.146 on Windows. Fails to compile on Linux, but doesn't crash/segfault. Added to DStress as http://dstress.kuehne.cn/run/a/assert_13_A.d http://dstress.kuehne.cn/run/a/assert_13_B.d Thomas |
Copyright © 1999-2021 by the D Language Foundation