Thread overview
assert bug
Feb 16, 2006
Derek Parnell
Feb 16, 2006
Thomas Kuehne
Feb 16, 2006
Derek Parnell
Feb 16, 2006
Deewiant
Feb 17, 2006
Thomas Kuehne
Feb 17, 2006
Thomas Kuehne
February 16, 2006
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
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
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
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
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
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
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